From e44e0fab9f0851d5a369778923c03701e31b9e79 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jan 2013 22:35:57 +0100 Subject: ConfigData: forbid copying a config_param object --- src/ConfigData.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ConfigData.hxx') diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index 93d1092fb..053cf3b39 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -72,8 +72,12 @@ struct config_param { gcc_nonnull_all config_param(const char *_value, int _line=-1); + config_param(const config_param &) = delete; + ~config_param(); + config_param &operator=(const config_param &) = delete; + gcc_nonnull_all void AddBlockParam(const char *_name, const char *_value, int _line=-1) { -- cgit v1.2.3