[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/phonon/xine
From: Matthias Kretz <kretz () kde ! org>
Date: 2008-08-11 17:54:00
Message-ID: 1218477240.076005.18909.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 845456 by mkretz:
add EVENT_CLASS0 and make ctors explicitly inline
M +12 -2 events.h
--- trunk/KDE/kdebase/runtime/phonon/xine/events.h #845455:845456
@@ -32,11 +32,21 @@
#define QEVENT(type) Event(Event::type)
+#define EVENT_CLASS0(type) \
+class type##Event : public Event \
+{ \
+ public: \
+ inline type##Event() : QEVENT(type) {} \
+}; \
+template <> inline type##Event *copyEvent<type##Event>(type##Event *) \
+{ \
+ return new type##Event(); \
+}
#define EVENT_CLASS1(type, arg1, init1, member1type, member1name) \
class type##Event : public Event \
{ \
public: \
- type##Event(arg1) : QEVENT(type), init1 {} \
+ inline type##Event(arg1) : QEVENT(type), init1 {} \
member1type member1name; \
}; \
template <> inline type##Event *copyEvent<type##Event>(type##Event *e) \
@@ -47,7 +57,7 @@
class type##Event : public Event \
{ \
public: \
- type##Event(arg1, arg2) : QEVENT(type), init1, init2 {} \
+ inline type##Event(arg1, arg2) : QEVENT(type), init1, init2 {} \
member1type member1name; \
member2type member2name; \
}; \
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic