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

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to