]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/deprecated/wxexpr.cpp
Updated Scintilla to version 1.58
[wxWidgets.git] / contrib / src / deprecated / wxexpr.cpp
index e97f0cbbd8f13798ddf19a23206edda29df9b223..24ce21acc3b2a8f3056ee2520e601a35574c5195 100644 (file)
 #include "wx/deprecated/expr.h"
 #include "wx/deprecated/wxexpr.h"
 
+#if !WXWIN_COMPATIBILITY_2_4
+static inline wxChar* copystring(const wxChar* s)
+    { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); }
+#endif
+
 extern "C" void add_expr(char *);
 extern "C" void LexFromFile(FILE *fd);
 extern "C" void LexFromString(char *buf);
@@ -1015,7 +1020,7 @@ void wxExprDatabase::Append(wxExpr *clause)
     if (expr)
     {
       long functor_key = hash_table->MakeKey(WXSTRINGCAST functor);
-      long value_key = 0;
+      long value_key;
       if (expr && expr->Type() == wxExprString)
       {
         value_key = hash_table->MakeKey(WXSTRINGCAST expr->StringValue());