From: Mikko Rasa Date: Sun, 27 Nov 2022 09:57:24 +0000 (+0200) Subject: Make Window's functions non-virtual X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0e59815bb5b0327ad0159a615c61afbf20dbd89e;p=libs%2Fgui.git Make Window's functions non-virtual The virtual keywords were left behind from the short-lived EventSource abstraction over a decade ago. --- diff --git a/source/graphics/window.h b/source/graphics/window.h index 75c4885..325f8c9 100644 --- a/source/graphics/window.h +++ b/source/graphics/window.h @@ -62,7 +62,7 @@ private: void platform_init(); void platform_cleanup(); public: - virtual ~Window(); + ~Window(); void set_title(const std::string &); void reconfigure(const WindowOptions &); @@ -82,8 +82,8 @@ public: Display &get_display() const { return display; } const WindowOptions &get_options() const { return options; } - virtual unsigned get_width() const { return options.width; } - virtual unsigned get_height() const { return options.height; } + unsigned get_width() const { return options.width; } + unsigned get_height() const { return options.height; } const Private &get_private() const { return *priv; } void show();