summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-02-19 23:43:02 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-03-01 12:59:05 +0100
commit97777a13a320dac9cba654caa35df24573370ab7 (patch)
treed01f4ca9f23c751258d6c9f331e2ae40d59c8140 /vdagent
parentc006de51f6383e5701f9803e9b2f5cda48fabfff (diff)
mingw: use const char * in DisplaySetting()
If we use char * instead of const char *, mingw gets confused when calling the constructor with a const char *: it tries to convert it to a mutable string through a std::string conversion and outputs a warning.
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/display_setting.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagent/display_setting.h b/vdagent/display_setting.h
index 923132f..8c8cdb1 100644
--- a/vdagent/display_setting.h
+++ b/vdagent/display_setting.h
@@ -35,7 +35,7 @@ public:
class DisplaySetting {
public:
- DisplaySetting(char* registry_key) : _reg_key (registry_key) {}
+ DisplaySetting(const char* registry_key) : _reg_key (registry_key) {}
void set(DisplaySettingOptions& opts);
void load();