summaryrefslogtreecommitdiff
path: root/src/guichan
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-22 01:34:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-22 01:34:49 +0300
commit3dcf21babe03cee5080a25e787e1d7e72124288e (patch)
tree7051c6beddd3e7e1de960bb84e46601db8e2e5c4 /src/guichan
parentc217b7141df580b686a0eef085bd0eb0a8e6771a (diff)
downloadmv-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.gz
mv-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.bz2
mv-3dcf21babe03cee5080a25e787e1d7e72124288e.tar.xz
mv-3dcf21babe03cee5080a25e787e1d7e72124288e.zip
Add final keyword to most classes.
Diffstat (limited to 'src/guichan')
-rw-r--r--src/guichan/include/guichan/actionevent.hpp4
-rw-r--r--src/guichan/include/guichan/cliprectangle.hpp4
-rw-r--r--src/guichan/include/guichan/color.hpp4
-rw-r--r--src/guichan/include/guichan/defaultfont.hpp4
-rw-r--r--src/guichan/include/guichan/exception.hpp4
-rw-r--r--src/guichan/include/guichan/key.hpp4
-rw-r--r--src/guichan/include/guichan/mouseinput.hpp4
-rw-r--r--src/guichan/include/guichan/selectionevent.hpp4
8 files changed, 24 insertions, 8 deletions
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 <string>
+#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 <iostream>
+#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: