From 396cac556d37e528d85317c5816bea41a467c2e0 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 19 Jul 2018 22:40:02 +0000 Subject: [PATCH] Add missing virtual destructors. --- src/platform/gui.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/platform/gui.h b/src/platform/gui.h index ecfc69f1..0d8c6b58 100644 --- a/src/platform/gui.h +++ b/src/platform/gui.h @@ -293,10 +293,12 @@ public: 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; @@ -333,6 +335,8 @@ extern std::vector 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;