Fix constness in generated C++ API

run(), show() and hide() should not be const, as well as the window() accessor.
This commit is contained in:
Simon Hausmann 2021-07-27 10:27:29 +02:00 committed by Simon Hausmann
parent bd556e03be
commit e97ecea480
2 changed files with 6 additions and 6 deletions

View file

@ -286,9 +286,9 @@ public:
~Window() = default;
/// Registers the window with the windowing system in order to make it visible on the screen.
void show() const { inner.show(); }
void show() { inner.show(); }
/// De-registers the window from the windowing system, therefore hiding it.
void hide() const { inner.hide(); }
void hide() { inner.hide(); }
/// \private
private_api::WindowRc &window_handle() { return inner; }