Changed wxFileName::SetExt() as per the discussion, added

ClearExt() and SetEmptyExt() and documented it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2005-03-04 17:31:18 +00:00
parent de5dc0febd
commit 0b40f3d80b
2 changed files with 38 additions and 3 deletions

View File

@@ -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; }