Last .empty() string source cleaning before 2.5.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -196,7 +196,7 @@ wxString wxFileType::ExpandCommand(const wxString& command,
|
||||
// know of the correct solution, try to guess what we have to do.
|
||||
|
||||
// test now carried out on reading file so test should never get here
|
||||
if ( !hasFilename && !str.IsEmpty()
|
||||
if ( !hasFilename && !str.empty()
|
||||
#ifdef __UNIX__
|
||||
&& !str.StartsWith(_T("test "))
|
||||
#endif // Unix
|
||||
@@ -428,7 +428,7 @@ bool wxFileType::SetDefaultIcon(const wxString& cmd, int index)
|
||||
// VZ: should we do this?
|
||||
// chris elliott : only makes sense in MS windows
|
||||
if ( sTmp.empty() )
|
||||
GetOpenCommand(&sTmp, wxFileType::MessageParameters(wxT(""), wxT("")));
|
||||
GetOpenCommand(&sTmp, wxFileType::MessageParameters(wxEmptyString, wxEmptyString));
|
||||
#endif
|
||||
wxCHECK_MSG( !sTmp.empty(), false, _T("need the icon file") );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user