Use wxString::clear() instead of assignment to wxEmptyString

This commit is contained in:
Paul Cornett
2017-02-18 11:00:26 -08:00
parent 4821bb4072
commit 96826d80d2
9 changed files with 18 additions and 18 deletions

View File

@@ -124,7 +124,7 @@ wxString wxFileSystemHandler::GetMimeTypeFromExt(const wxString& location)
wxFileType *ft = wxTheMimeTypesManager->GetFileTypeFromExtension(ext);
if ( !ft || !ft -> GetMimeType(&mime) )
{
mime = wxEmptyString;
mime.clear();
}
delete ft;
@@ -427,7 +427,7 @@ void wxFileSystem::ChangePathTo(const wxString& location, bool is_dir)
}
}
if (i == (int) m_Path.length())
m_Path = wxEmptyString;
m_Path.clear();
}
else
{
@@ -480,7 +480,7 @@ wxFSFile* wxFileSystem::OpenFile(const wxString& location, int flags)
}
if (meta != 0) break;
}
m_LastName = wxEmptyString;
m_LastName.clear();
// try relative paths first :
if (meta != wxT(':'))