X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d4edca33b67e61aeb28a8961ce2088c58631b16..a9102b3671a45d116d781b0c8e90d2e9a84fbdcb:/include/wx/filename.h diff --git a/include/wx/filename.h b/include/wx/filename.h index 95cbb18de5..b3b961c056 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -367,8 +367,9 @@ public: void RemoveLastDir() { RemoveDir(GetDirCount() - 1); } // Other accessors - void SetExt( const wxString &ext ) { m_ext = ext; m_hasExt = true; } - void SetNoExt() { m_ext = wxEmptyString; m_hasExt = false; } + 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; } wxString GetExt() const { return m_ext; } bool HasExt() const { return m_hasExt; }