git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34300
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/log.h"
#include "wx/sizer.h"
#include "wx/icon.h"
#include "wx/log.h"
#include "wx/sizer.h"
#include "wx/icon.h"
int style = wxNORMAL;
int weight = wxNORMAL;
int underlined = 0;
int style = wxNORMAL;
int weight = wxNORMAL;
int underlined = 0;
- wxString facename(wxT(""));
wxStringTokenizer tkz(str, wxT(","));
int i = 0;
wxStringTokenizer tkz(str, wxT(","));
int i = 0;
wxString cmd;
bool ok = ft->GetOpenCommand(&cmd,
wxString cmd;
bool ok = ft->GetOpenCommand(&cmd,
- wxFileType::MessageParameters(url, _T("")));
+ wxFileType::MessageParameters(url, wxEmptyString));
- ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(filename, _T("")));
+ ft->GetOpenCommand(&cmd, wxFileType::MessageParameters(filename, wxEmptyString));
delete ft;
return (wxExecute(cmd, false) != 0);
delete ft;
return (wxExecute(cmd, false) != 0);
wxString apFindAppPath(const wxString& argv0, const wxString& cwd, const wxString& appVariableName)
{
// Try appVariableName
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()));
{
wxString strVar(wxGetenv(appVariableName.c_str()));
wxPathList pathList;
pathList.AddEnvList(wxT("PATH"));
wxString strPath = pathList.FindAbsoluteValidPath(argv0);
wxPathList pathList;
pathList.AddEnvList(wxT("PATH"));
wxString strPath = pathList.FindAbsoluteValidPath(argv0);
- if (!strPath.IsEmpty())
return wxPathOnly(strPath);
// Failed
return wxPathOnly(strPath);
// Failed
wxString left(matchAgainst);
bool success = false;
int matchTextLen = (int) matchText.Length();
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)
{
int pos = left.Find(matchText);
if (pos == wxNOT_FOUND)