summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.h
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2011-12-13 10:14:23 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-13 16:36:33 +0100
commit3ed0a233231a94cd8adb2fe8dfa212caece0085b (patch)
tree6dc0f4c781c7401a21c66ba580c16c34a43066f6 /src/corelib/global/qglobal.h
parent7694599ef933b306d54116723adab0d5d8651ff5 (diff)
Add specialization for QTypeInfo<void>
QTypeInfo uses sizeof which is illegal operation for void type. Change-Id: Idf43551bdfafbb76e32f4f2785af5f4291981e73 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r--src/corelib/global/qglobal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index e22d66628e..76b956cc67 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -2027,6 +2027,19 @@ public:
};
};
+template<>
+class QTypeInfo<void>
+{
+public:
+ enum {
+ isPointer = false,
+ isComplex = false,
+ isStatic = false,
+ isLarge = false,
+ isDummy = false
+ };
+};
+
template <typename T>
class QTypeInfo<T*>
{