Return false from wxFileName::AppendDir() and InsertDir() on failure.
Give the caller a way to know whether the directory was valid or not. Closes #15091. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -490,9 +490,9 @@ 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); }
|
||||
|
||||
|
Reference in New Issue
Block a user