]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/wxexpr.h
Removed some old cruft from wxBitmap, moved wxMotif- and
[wxWidgets.git] / include / wx / wxexpr.h
index 7df1bf9b5447aac55840fe68ce2fc475467bbb9f..304aeb09c9fb96e6e3010a475818e8ac6b5a29c7 100644 (file)
@@ -82,7 +82,7 @@ class WXDLLEXPORT wxExpr
 
   wxExpr(wxExprType the_type, wxChar *word_or_string, bool allocate);
   wxExpr(const wxString& functor);      // Assume this is a new clause - pass functor
-  wxExpr(wxExprType the_type, const wxString& word_or_string = "");
+  wxExpr(wxExprType the_type, const wxString& word_or_string = wxT(""));
   wxExpr(long the_integer);
   wxExpr(double the_real);
   wxExpr(wxList *the_list);
@@ -246,7 +246,10 @@ public:
 
     // Compatibility
     inline bool ReadProlog(wxChar *filename) { return Read(wxString(filename)); }
-    inline bool ReadPrologFromString(char *buffer) { return ReadFromString(wxString(buffer)); }
+    inline bool ReadPrologFromString(char *buffer)
+    {
+        return ReadFromString(wxString(buffer, wxConvLibc));
+    }
     inline void WriteProlog(FILE* stream) { Write(stream); }
 
 private: