summaryrefslogtreecommitdiff
path: root/src/events/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/event.h')
-rw-r--r--src/events/event.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/events/event.h b/src/events/event.h
index b71d0edd4..63ccb207d 100644
--- a/src/events/event.h
+++ b/src/events/event.h
@@ -66,10 +66,7 @@
#include "localconsts.h"
-namespace gcn
-{
- class Widget;
-}
+class Widget;
/**
* Base class for all events. All events in Guichan should
@@ -86,7 +83,7 @@ class Event
*
* @param source The source widget of the event.
*/
- explicit Event(gcn::Widget *const source) :
+ explicit Event(Widget *const source) :
mSource(source)
{ }
@@ -104,14 +101,14 @@ class Event
*
* @return The source widget of the event.
*/
- gcn::Widget* getSource() const A_WARN_UNUSED
+ Widget* getSource() const A_WARN_UNUSED
{ return mSource; }
protected:
/**
* Holds the source widget of the event.
*/
- gcn::Widget* mSource;
+ Widget* mSource;
};
#endif // EVENTS_EVENT_H