No real changes, just use wxString::clear() instead of assignment.

Consistently use clear() everywhere instead of assigning wxEmptyString in some
places and wxT("") in some others to a string in order to clear it.

See #15091.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-03-09 15:08:40 +00:00
parent 6aa4e3989f
commit 3cca1b3d8b
2 changed files with 8 additions and 9 deletions

View File

@@ -498,8 +498,8 @@ public:
// Other accessors
void SetExt( const wxString &ext ) { m_ext = ext; m_hasExt = !m_ext.empty(); }
void ClearExt() { m_ext = wxEmptyString; m_hasExt = false; }
void SetEmptyExt() { m_ext = wxT(""); m_hasExt = true; }
void ClearExt() { m_ext.clear(); m_hasExt = false; }
void SetEmptyExt() { m_ext.clear(); m_hasExt = true; }
wxString GetExt() const { return m_ext; }
bool HasExt() const { return m_hasExt; }