Skip to content

Commit

Permalink
Add missing virtual destructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jul 19, 2018
1 parent c37cddf commit 396cac5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/platform/gui.h
Expand Up @@ -293,10 +293,12 @@ class MessageDialog {
CANCEL
};

virtual ~MessageDialog() {}

virtual void SetType(Type type) = 0;
virtual void SetTitle(std::string title) = 0;
virtual void SetMessage(std::string caption) = 0;
virtual void SetDescription(std::string text) = 0;
virtual void SetMessage(std::string message) = 0;
virtual void SetDescription(std::string description) = 0;

virtual void AddButton(std::string name, Response response, bool isDefault = false) = 0;

Expand Down Expand Up @@ -333,6 +335,8 @@ extern std::vector<FileFilter> CsvFileFilters;
// A native dialog that asks to choose a file.
class FileDialog {
public:
virtual ~FileDialog() {}

virtual void SetTitle(std::string title) = 0;
virtual void SetCurrentName(std::string name) = 0;

Expand Down

0 comments on commit 396cac5

Please sign in to comment.