src/common.h

changeset 421
7d26db0be944
parent 402
ec95fc95e5f3
child 433
b49930dcbe84
--- a/src/common.h	Fri Aug 02 15:57:03 2013 +0300
+++ b/src/common.h	Fri Aug 02 16:33:30 2013 +0300
@@ -61,9 +61,9 @@
 void doDevf (const char* func, const char* fmtstr, ...);
 
 // Version string identifier
-const char* versionString ();
-const char* versionMoniker ();
-const char* fullVersionString ();
+const char* versionString();
+const char* versionMoniker();
+const char* fullVersionString();
 
 // Null pointer
 static const std::nullptr_t null = nullptr;
@@ -91,7 +91,7 @@
 #define PROP_NAME(GET) m_##GET
 
 #define READ_ACCESSOR(T, GET) \
-	T const& GET () const
+	T const& GET() const
 
 #define SET_ACCESSOR(T, SET) \
 	void SET (T val)
@@ -133,13 +133,13 @@
 
 // Property whose set accessor is a public slot
 // TODO: make this replace PROPERTY
-#define SLOT_PROPERTY( T, GET, SET ) \
+#define SLOT_PROPERTY (T, GET, SET) \
 private: \
-	T PROP_NAME( GET ); \
+	T PROP_NAME (GET); \
 public: \
-	READ_ACCESSOR( T, GET ) { return PROP_NAME (GET); } \
+	READ_ACCESSOR (T, GET) { return PROP_NAME (GET); } \
 public slots: \
-	SET_ACCESSOR( T, SET ) { PROP_NAME (GET) = val; }
+	SET_ACCESSOR (T, SET) { PROP_NAME (GET) = val; }
 
 #ifdef null
 #undef null

mercurial