diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2016-11-13 11:04:23 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2016-11-13 11:04:23 +0100 |
commit | 41317d31c8bd5c58ff6c1fac0b9fa215b866826a (patch) | |
tree | 802d69688584d50dda4c13828f34263d1a4e4401 /src/screen.h | |
parent | 40163dedaa88767ae3843eb10150206baeef390f (diff) |
configure: require c++14 compatible compiler
Diffstat (limited to 'src/screen.h')
-rw-r--r-- | src/screen.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/screen.h b/src/screen.h index ec98a666..a7fce575 100644 --- a/src/screen.h +++ b/src/screen.h @@ -152,7 +152,7 @@ public: virtual ~Screen() { } - virtual bool isActiveWindow(const NC::Window &w_) const OVERRIDE { + virtual bool isActiveWindow(const NC::Window &w_) const override { return &Accessor::constApply(w) == &w_; } @@ -160,20 +160,20 @@ public: /// it's useful to determine the one that is being /// active /// @return address to window object cast to void * - virtual NC::Window *activeWindow() OVERRIDE { + virtual NC::Window *activeWindow() override { return &Accessor::apply(w); } - virtual const NC::Window *activeWindow() const OVERRIDE { + virtual const NC::Window *activeWindow() const override { return &Accessor::constApply(w); } /// Refreshes whole screen - virtual void refresh() OVERRIDE { + virtual void refresh() override { Accessor::apply(w).display(); } /// Refreshes active window of the screen - virtual void refreshWindow() OVERRIDE { + virtual void refreshWindow() override { Accessor::apply(w).display(); } @@ -181,20 +181,20 @@ public: /// if fancy scrolling feature is disabled, enters the /// loop that holds main loop until user releases the key /// @param where indicates where one wants to scroll - virtual void scroll(NC::Scroll where) OVERRIDE { + virtual void scroll(NC::Scroll where) override { Accessor::apply(w).scroll(where); } /// @return timeout parameter used for the screen (in ms) /// @default defaultWindowTimeout - virtual int windowTimeout() OVERRIDE { + virtual int windowTimeout() override { return defaultWindowTimeout; } /// Invoked after there was one of mouse buttons pressed /// @param me struct that contains coords of where the click /// had its place and button actions - virtual void mouseButtonPressed(MEVENT me) OVERRIDE { + virtual void mouseButtonPressed(MEVENT me) override { genericMouseButtonPressed(Accessor::apply(w), me); } |