X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/903506828b7d042350eae97b5014a63ffca17ef5..1da51aafba47af813ed5165855c819f490086f85:/src/common/wxexpr.cpp diff --git a/src/common/wxexpr.cpp b/src/common/wxexpr.cpp index 01784063b2..b470a98ecc 100644 --- a/src/common/wxexpr.cpp +++ b/src/common/wxexpr.cpp @@ -20,6 +20,8 @@ #pragma hdrstop #endif +#if wxUSE_PROLOGIO + #include #include #include @@ -606,7 +608,7 @@ void wxExpr::AddAttributeValueStringList(const wxString& attribute, wxList *stri wxNode *node = string_list->First(); while (node) { - char *string = (char *)node->Data(); + wxChar *string = (wxChar*)node->GetData(); wxExpr *expr = new wxExpr(wxExprString, wxString(string)); listExpr->Append(expr); node = node->Next(); @@ -918,7 +920,7 @@ wxExpr *wxExprDatabase::FindClause(long id) // Find a term based on an integer if (term->Type() == wxExprList) { - wxExpr *value = term->AttributeValue("id"); + wxExpr *value = term->AttributeValue(wxT("id")); if (value->Type() == wxExprInteger && value->IntegerValue() == id) found = term; } @@ -1194,7 +1196,7 @@ char *wxmake_exp2(char *str1, char *str2, char *str3) char *wxmake_word(char *str) { - wxExpr *x = new wxExpr(wxExprWord, str); + wxExpr *x = new wxExpr(wxExprWord, wxString(str, wxConvLibc).c_str()); return (char *)x; } @@ -1272,3 +1274,5 @@ WXDLLEXPORT char *strdup(const char *s) #endif #endif +#endif + // wxUSE_PROLOGIO