Remove initializations of wxString with wxEmptyString

An empty string is the default
This commit is contained in:
Paul Cornett
2017-05-28 23:53:44 -07:00
parent 7358202d29
commit 01909a20c8
6 changed files with 9 additions and 9 deletions

View File

@@ -648,8 +648,8 @@ protected:
class WXDLLIMPEXP_HTML wxHtmlLinkInfo : public wxObject
{
public:
wxHtmlLinkInfo() : wxObject()
{ m_Href = m_Target = wxEmptyString; m_Event = NULL; m_Cell = NULL; }
wxHtmlLinkInfo()
{ m_Event = NULL; m_Cell = NULL; }
wxHtmlLinkInfo(const wxString& href, const wxString& target = wxString())
: m_Href(href)
, m_Target(target)

View File

@@ -516,7 +516,7 @@ size_t wxChmInputStream::OnSysRead(void *buffer, size_t bufsize)
wxFileOffset wxChmInputStream::OnSysSeek(wxFileOffset seek, wxSeekMode mode)
{
wxString mode_str = wxEmptyString;
wxString mode_str;
if ( !m_contentStream || m_contentStream->Eof() )
{

View File

@@ -829,7 +829,7 @@ bool wxHtmlHelpWindow::KeywordSearch(const wxString& keyword,
int foundcnt = 0;
wxString foundstr;
wxString book = wxEmptyString;
wxString book;
if (!m_Splitter->IsSplit())
{

View File

@@ -589,7 +589,7 @@ bool wxHtmlWindow::LoadPage(const wxString& location)
else
{
wxList::compatibility_iterator node;
wxString src = wxEmptyString;
wxString src;
#if wxUSE_STATUSBAR
if (m_RelatedStatusBarIndex != -1)

View File

@@ -1248,7 +1248,7 @@ void wxWebViewIE::onActiveXEvent(wxActiveXEvent& evt)
{
wxString url = evt[1].GetString();
// TODO: set target parameter if possible
wxString target = wxEmptyString;
wxString target;
wxWebViewEvent event(wxEVT_WEBVIEW_NAVIGATED,
GetId(), url, target);
event.SetEventObject(this);
@@ -1299,7 +1299,7 @@ void wxWebViewIE::onActiveXEvent(wxActiveXEvent& evt)
//Reset the find values.
FindClear();
// TODO: set target parameter if possible
wxString target = wxEmptyString;
wxString target;
wxWebViewEvent event(wxEVT_WEBVIEW_LOADED, GetId(),
url, target);
event.SetEventObject(this);

View File

@@ -74,7 +74,7 @@ void wxRibbonBar::AddPage(wxRibbonPage *page)
// info.rect not set (intentional)
wxClientDC dcTemp(this);
wxString label = wxEmptyString;
wxString label;
if(m_flags & wxRIBBON_BAR_SHOW_PAGE_LABELS)
label = page->GetLabel();
wxBitmap icon = wxNullBitmap;
@@ -174,7 +174,7 @@ bool wxRibbonBar::Realize()
{
status = false;
}
wxString label = wxEmptyString;
wxString label;
if(m_flags & wxRIBBON_BAR_SHOW_PAGE_LABELS)
label = info.page->GetLabel();
wxBitmap icon = wxNullBitmap;