]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sysopt.cpp
get rid of several dozen of warnings when using g++ >= 4.2 about string literals...
[wxWidgets.git] / src / common / sysopt.cpp
index 56227995c9edb0db31ea296cceddd7c61d1f258f..d27f46c726c392a80c58e1080827ce3e69c5b317 100644 (file)
@@ -100,7 +100,12 @@ wxString wxSystemOptions::GetOption(const wxString& name)
 
 int wxSystemOptions::GetOptionInt(const wxString& name)
 {
-    return wxAtoi(GetOption(name));
+#ifdef _PACC_VER
+    // work around the PalmOS pacc compiler bug
+    return wxAtoi (GetOption(name).data());
+#else
+    return wxAtoi (GetOption(name));
+#endif
 }
 
 bool wxSystemOptions::HasOption(const wxString& name)