Avoid overriding wxDirDialog::GetPath[s]() unnecessarily

Don't duplicate practically the same code in all ports, just add m_paths
itself to the base class. The only drawback of doing this is that it's
unused in the ports not (yet) using it, but this saves enough code in
the aggregate to be worth it.
This commit is contained in:
Vadim Zeitlin
2020-07-10 03:52:15 +02:00
parent 2b0323ebc8
commit a47fd95e45
7 changed files with 15 additions and 58 deletions

View File

@@ -37,9 +37,7 @@ public:
public: // overrides from wxGenericDirDialog
wxString GetPath() const wxOVERRIDE;
void SetPath(const wxString& path) wxOVERRIDE;
void GetPaths(wxArrayString& paths) const wxOVERRIDE;
// Implementation only.
@@ -56,8 +54,6 @@ protected:
private:
wxArrayString m_paths;
wxDECLARE_DYNAMIC_CLASS(wxDirDialog);
};