From d886f8cce991153da400f495d18a98c38f5c4993 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 18 Feb 2017 10:32:56 -0800 Subject: [PATCH] Remove initializations of wxString with wxEmptyString An empty string is the default --- src/common/cmndata.cpp | 1 - src/common/filesys.cpp | 2 +- src/common/fs_arc.cpp | 3 +-- src/common/paper.cpp | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index f4eff7fb2a..3b10be6285 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -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; diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 1a04946aea..149df69350 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -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; diff --git a/src/common/fs_arc.cpp b/src/common/fs_arc.cpp index 14f3134b5f..94aac59b54 100644 --- a/src/common/fs_arc.cpp +++ b/src/common/fs_arc.cpp @@ -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) { diff --git a/src/common/paper.cpp b/src/common/paper.cpp index e1f8b20957..753978dd76 100644 --- a/src/common/paper.cpp +++ b/src/common/paper.cpp @@ -50,7 +50,6 @@ wxPrintPaperType::wxPrintPaperType() { m_paperId = wxPAPER_NONE; m_platformId = 0; - m_paperName = wxEmptyString; m_width = 0; m_height = 0; }