X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aa4e3989fe770fc7293770ed46604e7d5b9fb99..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/filename.h?ds=inline diff --git a/include/wx/filename.h b/include/wx/filename.h index 7ef9e2f93d..7768d77a1c 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -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; }