aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 22:35:57 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 22:39:24 +0100
commite44e0fab9f0851d5a369778923c03701e31b9e79 (patch)
tree452cbb3bcc524e6d534162d091bfc46b16ad384b
parentc434077728f221503a810d66d15bed489829a9c8 (diff)
downloadmpd-e44e0fab9f0851d5a369778923c03701e31b9e79.tar.gz
mpd-e44e0fab9f0851d5a369778923c03701e31b9e79.tar.xz
mpd-e44e0fab9f0851d5a369778923c03701e31b9e79.zip
ConfigData: forbid copying a config_param object
-rw-r--r--src/ConfigData.hxx4
1 files changed, 4 insertions, 0 deletions
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) {