Remove initializations of wxString with wxEmptyString

An empty string is the default
This commit is contained in:
Paul Cornett 2017-02-18 10:32:56 -08:00
parent 5e7db7c0f1
commit d886f8cce9
4 changed files with 2 additions and 5 deletions

View File

@ -67,7 +67,6 @@ wxPrintData::wxPrintData()
m_printCollate = false;
// New, 24/3/99
m_printerName = wxEmptyString;
m_colour = true;
m_duplexMode = wxDUPLEX_SIMPLEX;
m_printQuality = wxPRINT_QUALITY_HIGH;

View File

@ -153,7 +153,7 @@ wxString wxFileSystemHandler::GetMimeTypeFromExt(const wxString& location)
/* static */
wxString wxFileSystemHandler::GetProtocol(const wxString& location)
{
wxString s = wxEmptyString;
wxString s;
int i, l = location.length();
bool fnd = false;

View File

@ -312,7 +312,6 @@ wxArchiveFSHandler::wxArchiveFSHandler()
{
m_Archive = NULL;
m_FindEntry = NULL;
m_ZipFile = m_Pattern = m_BaseDir = wxEmptyString;
m_AllowDirs = m_AllowFiles = true;
m_DirsFound = NULL;
m_cache = NULL;
@ -477,7 +476,7 @@ wxString wxArchiveFSHandler::FindNext()
wxString wxArchiveFSHandler::DoFind()
{
wxString namestr, dir, filename;
wxString match = wxEmptyString;
wxString match;
while (match == wxEmptyString)
{

View File

@ -50,7 +50,6 @@ wxPrintPaperType::wxPrintPaperType()
{
m_paperId = wxPAPER_NONE;
m_platformId = 0;
m_paperName = wxEmptyString;
m_width = 0;
m_height = 0;
}