X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/461e93f921df33c09637db5dddcfd07411ff0ded..a2facb941551818201719b4f0010a0298906b9a8:/src/common/wxexpr.cpp diff --git a/src/common/wxexpr.cpp b/src/common/wxexpr.cpp index 3db96de17a..63b821bd7b 100644 --- a/src/common/wxexpr.cpp +++ b/src/common/wxexpr.cpp @@ -5,8 +5,8 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -608,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(); @@ -920,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; } @@ -1196,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; }