[Spice-devel] [PATCH 14/20] mingw: use const char * in DisplaySetting()
Christophe Fergeau
cfergeau at redhat.com
Thu Mar 1 02:17:48 PST 2012
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.
---
vdagent/display_setting.h | 2 +-
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();
--
1.7.7.6
More information about the Spice-devel
mailing list