From 3dcf21babe03cee5080a25e787e1d7e72124288e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Sep 2012 01:34:49 +0300 Subject: Add final keyword to most classes. --- src/guichan/include/guichan/actionevent.hpp | 4 +++- src/guichan/include/guichan/cliprectangle.hpp | 4 +++- src/guichan/include/guichan/color.hpp | 4 +++- src/guichan/include/guichan/defaultfont.hpp | 4 +++- src/guichan/include/guichan/exception.hpp | 4 +++- src/guichan/include/guichan/key.hpp | 4 +++- src/guichan/include/guichan/mouseinput.hpp | 4 +++- src/guichan/include/guichan/selectionevent.hpp | 4 +++- 8 files changed, 24 insertions(+), 8 deletions(-) (limited to 'src/guichan/include') diff --git a/src/guichan/include/guichan/actionevent.hpp b/src/guichan/include/guichan/actionevent.hpp index b8927931c..082f7bdef 100644 --- a/src/guichan/include/guichan/actionevent.hpp +++ b/src/guichan/include/guichan/actionevent.hpp @@ -50,6 +50,8 @@ #include +#include "localconsts.h" + namespace gcn { class Widget; @@ -76,7 +78,7 @@ namespace gcn * @author Olof Naessén * @since 0.6.0 */ - class GCN_CORE_DECLSPEC ActionEvent: public Event + class GCN_CORE_DECLSPEC ActionEvent final : public Event { public: diff --git a/src/guichan/include/guichan/cliprectangle.hpp b/src/guichan/include/guichan/cliprectangle.hpp index 886153549..7e59d0d0f 100644 --- a/src/guichan/include/guichan/cliprectangle.hpp +++ b/src/guichan/include/guichan/cliprectangle.hpp @@ -48,6 +48,8 @@ #include "guichan/rectangle.hpp" #include "guichan/platform.hpp" +#include "localconsts.h" + namespace gcn { /** @@ -56,7 +58,7 @@ namespace gcn * offsets. The offsets are used for calculations from relative * screen coordinates to actual screen coordinates. */ - class GCN_CORE_DECLSPEC ClipRectangle : public Rectangle + class GCN_CORE_DECLSPEC ClipRectangle final : public Rectangle { public: diff --git a/src/guichan/include/guichan/color.hpp b/src/guichan/include/guichan/color.hpp index 795cdc12d..0fcd6ba6f 100644 --- a/src/guichan/include/guichan/color.hpp +++ b/src/guichan/include/guichan/color.hpp @@ -49,12 +49,14 @@ #include +#include "localconsts.h" + namespace gcn { /** * Represents a color with red, green, blue and alpha components. */ - class GCN_CORE_DECLSPEC Color + class GCN_CORE_DECLSPEC Color final { public: diff --git a/src/guichan/include/guichan/defaultfont.hpp b/src/guichan/include/guichan/defaultfont.hpp index 7da9041d7..c09802ee3 100644 --- a/src/guichan/include/guichan/defaultfont.hpp +++ b/src/guichan/include/guichan/defaultfont.hpp @@ -48,6 +48,8 @@ #include "guichan/font.hpp" #include "guichan/platform.hpp" +#include "localconsts.h" + namespace gcn { /** @@ -55,7 +57,7 @@ namespace gcn * in Guichan if no font has been set merely to show that no font has * been set. */ - class GCN_CORE_DECLSPEC DefaultFont : public Font + class GCN_CORE_DECLSPEC DefaultFont final : public Font { public: diff --git a/src/guichan/include/guichan/exception.hpp b/src/guichan/include/guichan/exception.hpp index e2dd958be..0e929ebe1 100644 --- a/src/guichan/include/guichan/exception.hpp +++ b/src/guichan/include/guichan/exception.hpp @@ -49,6 +49,8 @@ #include "guichan/platform.hpp" +#include "localconsts.h" + #ifndef __FUNCTION__ #define __FUNCTION__ "?" #endif @@ -83,7 +85,7 @@ namespace gcn * throw GCN_EXCEPTION("my error message"); * @endcode */ - class GCN_CORE_DECLSPEC Exception + class GCN_CORE_DECLSPEC Exception final { public: diff --git a/src/guichan/include/guichan/key.hpp b/src/guichan/include/guichan/key.hpp index 9b31d7c6b..c2af0ac60 100644 --- a/src/guichan/include/guichan/key.hpp +++ b/src/guichan/include/guichan/key.hpp @@ -47,6 +47,8 @@ #include "guichan/platform.hpp" +#include "localconsts.h" + // windows.h defines DELETE which breaks this file as we have a constant named // DELETE, hence we undefine DELETE if it is defined and hope people don't use // that windows define with Guichan. @@ -59,7 +61,7 @@ namespace gcn /** * Represents a key or a character. */ - class GCN_CORE_DECLSPEC Key + class GCN_CORE_DECLSPEC Key final { public: diff --git a/src/guichan/include/guichan/mouseinput.hpp b/src/guichan/include/guichan/mouseinput.hpp index 99ed1fad8..b2fc9d36a 100644 --- a/src/guichan/include/guichan/mouseinput.hpp +++ b/src/guichan/include/guichan/mouseinput.hpp @@ -47,6 +47,8 @@ #include "guichan/platform.hpp" +#include "localconsts.h" + namespace gcn { @@ -59,7 +61,7 @@ namespace gcn * @author Per Larsson * @since 0.1.0 */ - class GCN_CORE_DECLSPEC MouseInput + class GCN_CORE_DECLSPEC MouseInput final { public: diff --git a/src/guichan/include/guichan/selectionevent.hpp b/src/guichan/include/guichan/selectionevent.hpp index 53efc93f5..fc6c2050b 100644 --- a/src/guichan/include/guichan/selectionevent.hpp +++ b/src/guichan/include/guichan/selectionevent.hpp @@ -48,6 +48,8 @@ #include "guichan/event.hpp" #include "guichan/platform.hpp" +#include "localconsts.h" + namespace gcn { class Widget; @@ -58,7 +60,7 @@ namespace gcn * @author Olof Naessén * @since 0.8.0 */ - class GCN_CORE_DECLSPEC SelectionEvent: public Event + class GCN_CORE_DECLSPEC SelectionEvent final: public Event { public: -- cgit v1.2.3-60-g2f50