X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e74f12021dd10f2b6ae98d082f65b1209c8402be..cf7f7d5d96c178d35ceb96fe74ea3eb13dd009de:/utils/wxrc/wxrc.cpp?ds=inline diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 3894c54a92..0080c4e75f 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -120,9 +120,10 @@ public: name == _T("notebookpage") || name == _T("separator") || name == _T("sizeritem") || + name == _T("wxMenu") || name == _T("wxMenuBar") || name == _T("wxMenuItem") || - name == _T("wxStaticBoxSizer") ) + name.EndsWith(_T("Sizer")) ) { return false; } @@ -273,7 +274,7 @@ int XmlResApp::OnRun() wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_MULTIPLE | wxCMD_LINE_OPTION_MANDATORY }, - wxCMD_LINE_DESC_END + wxCMD_LINE_DESC_END }; wxCmdLineParser parser(cmdLineDesc, argc, argv); @@ -416,7 +417,7 @@ wxArrayString XmlResApp::PrepareTempFiles() } wxString name, ext, path; - wxSplitPath(parFiles[i], &path, &name, &ext); + wxFileName::SplitPath(parFiles[i], &path, &name, &ext); FindFilesInXML(doc.GetRoot(), flist, path); if (flagH) @@ -581,7 +582,8 @@ static wxString FileToCppArray(wxString filename, int num) wxASSERT_MSG( offset >= 0 , wxT("Invalid file length") ); const size_t lng = wx_truncate_cast(size_t, offset); - wxASSERT_MSG( lng == offset, wxT("Huge file not supported") ); + wxASSERT_MSG( static_cast(lng) == offset, + wxT("Huge file not supported") ); snum.Printf(_T("%i"), num); output.Printf(_T("static size_t xml_res_size_") + snum + _T(" = %i;\n"), lng); @@ -734,7 +736,8 @@ static wxString FileToPythonArray(wxString filename, int num) wxASSERT_MSG( offset >= 0 , wxT("Invalid file length") ); const size_t lng = wx_truncate_cast(size_t, offset); - wxASSERT_MSG( offset == lng, wxT("Huge file not supported") ); + wxASSERT_MSG( static_cast(lng) == offset, + wxT("Huge file not supported") ); snum.Printf(_T("%i"), num); output = " xml_res_file_" + snum + " = '''\\\n";