X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58263bb4c371f36d114fb366df9197cf8ec07c4c..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/filename.h?ds=inline diff --git a/include/wx/filename.h b/include/wx/filename.h index f580d1d494..7768d77a1c 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -490,16 +490,16 @@ public: // Dir accessors size_t GetDirCount() const { return m_dirs.size(); } - void AppendDir(const wxString& dir); + bool AppendDir(const wxString& dir); void PrependDir(const wxString& dir); - void InsertDir(size_t before, const wxString& dir); + bool InsertDir(size_t before, const wxString& dir); void RemoveDir(size_t pos); void RemoveLastDir() { RemoveDir(GetDirCount() - 1); } // 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; }