From b26fc689da4e1e8e02c8f71904a70ce5c156b482 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Dec 2017 06:54:37 +0300 Subject: Add missing final / notfinal keywords to classes. --- src/actormanager.h | 2 +- src/events/inputguievent.h | 2 +- src/events/keyevent.h | 2 +- src/events/mouseevent.h | 2 +- src/events/selectionevent.h | 2 +- src/gui/widgets/basiccontainer2.h | 2 +- src/resources/map/maplayer.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/actormanager.h b/src/actormanager.h index 5188df16c..15c9d1a83 100644 --- a/src/actormanager.h +++ b/src/actormanager.h @@ -65,7 +65,7 @@ typedef ActorSpritesMap::const_iterator ActorSpritesMapConstIterator; typedef std::map > IdNameMapping; typedef IdNameMapping::const_iterator IdNameMappingCIter; -class ActorManager final: public ConfigListener +class ActorManager final : public ConfigListener { public: ActorManager(); diff --git a/src/events/inputguievent.h b/src/events/inputguievent.h index 2a702db91..dc4dfe427 100644 --- a/src/events/inputguievent.h +++ b/src/events/inputguievent.h @@ -71,7 +71,7 @@ * * @author Olof Naessén */ -class InputGuiEvent: public Event +class InputGuiEvent notfinal : public Event { public: /** diff --git a/src/events/keyevent.h b/src/events/keyevent.h index b08b57f9d..e8fea72ed 100644 --- a/src/events/keyevent.h +++ b/src/events/keyevent.h @@ -81,7 +81,7 @@ class Widget; /** * Represents a key event. */ -class KeyEvent: public InputGuiEvent +class KeyEvent final : public InputGuiEvent { public: /** diff --git a/src/events/mouseevent.h b/src/events/mouseevent.h index 3a3a70f0a..cd43af96b 100644 --- a/src/events/mouseevent.h +++ b/src/events/mouseevent.h @@ -76,7 +76,7 @@ class Widget; * * @author Olof Naessén */ -class MouseEvent: public InputGuiEvent +class MouseEvent final : public InputGuiEvent { public: /** diff --git a/src/events/selectionevent.h b/src/events/selectionevent.h index 06d66cd04..51b0d4f70 100644 --- a/src/events/selectionevent.h +++ b/src/events/selectionevent.h @@ -75,7 +75,7 @@ class Widget; * * @author Olof Naessén */ -class SelectionEvent final: public Event +class SelectionEvent final : public Event { public: /** diff --git a/src/gui/widgets/basiccontainer2.h b/src/gui/widgets/basiccontainer2.h index 6090d4d82..d346db543 100644 --- a/src/gui/widgets/basiccontainer2.h +++ b/src/gui/widgets/basiccontainer2.h @@ -76,7 +76,7 @@ * * @see Gui::setTop */ -class BasicContainer2: public BasicContainer +class BasicContainer2 notfinal : public BasicContainer { public: /** diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h index 87ddb96ec..b0c814d59 100644 --- a/src/resources/map/maplayer.h +++ b/src/resources/map/maplayer.h @@ -45,7 +45,7 @@ struct MetaTile; * A map layer. Stores a grid of tiles and their offset, and implements layer * rendering. */ -class MapLayer final: public MemoryCounter, public ConfigListener +class MapLayer final : public MemoryCounter, public ConfigListener { public: friend class Map; -- cgit v1.2.3-70-g09d2