#include "wx/log.h"
#include "wx/sizer.h"
#include "wx/icon.h"
+#include "wx/intl.h"
#endif
int style = wxNORMAL;
int weight = wxNORMAL;
int underlined = 0;
- wxString facename(wxT(""));
+ wxString facename;
wxStringTokenizer tkz(str, wxT(","));
int i = 0;
wxString cmd;
bool ok = ft->GetOpenCommand(&cmd,
- wxFileType::MessageParameters(url, _T("")));
+ wxFileType::MessageParameters(url, wxEmptyString));
delete ft;
if (!ok)
}
wxString cmd;
- ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(filename, _T("")));
+ ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(filename, wxEmptyString));
delete ft;
return (wxExecute(cmd, false) != 0);
wxString apFindAppPath(const wxString& argv0, const wxString& cwd, const wxString& appVariableName)
{
// Try appVariableName
- if (!appVariableName.IsEmpty())
+ if (!appVariableName.empty())
{
wxString strVar(wxGetenv(appVariableName.c_str()));
- if (!strVar.IsEmpty())
+ if (!strVar.empty())
return strVar;
}
wxPathList pathList;
pathList.AddEnvList(wxT("PATH"));
wxString strPath = pathList.FindAbsoluteValidPath(argv0);
- if (!strPath.IsEmpty())
+ if (!strPath.empty())
return wxPathOnly(strPath);
// Failed
wxString left(matchAgainst);
bool success = false;
int matchTextLen = (int) matchText.Length();
- while (!success && !matchAgainst.IsEmpty())
+ while (!success && !matchAgainst.empty())
{
int pos = left.Find(matchText);
if (pos == wxNOT_FOUND)