summaryrefslogtreecommitdiff
path: root/qobject.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-11-11 10:50:36 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-17 08:49:38 -0600
commitc99ca93142391a2461afbe07926fa50f1c8f4d9a (patch)
treeb4eaea34a7b2ffcc6c8c08dc20b7646ad1aa10c5 /qobject.h
parent78f5d726027d91065f11ea6b3e601492e0c1ff1d (diff)
Properly escape QDECREF macro arguments
QDECREF does not properly escape the macro arguments which can lead to unexpected syntax errors. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qobject.h')
-rw-r--r--qobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qobject.h b/qobject.h
index 4cc928770..76f669f95 100644
--- a/qobject.h
+++ b/qobject.h
@@ -60,7 +60,7 @@ typedef struct QObject {
QObject base
/* Get the 'base' part of an object */
-#define QOBJECT(obj) (&obj->base)
+#define QOBJECT(obj) (&(obj)->base)
/* High-level interface for qobject_incref() */
#define QINCREF(obj) \