QPaintBuffer: use the nullary version of qRegisterMetaTypeStreamOperators()
authorMarc Mutz <marc.mutz@kdab.com>
Fri, 20 Jul 2012 09:22:00 +0000 (11:22 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Jul 2012 15:48:39 +0000 (17:48 +0200)
The name is taken from the existing Q_DECLARE_METATYPE()s.
Also don't call qRegisterMetaType<>, as that is done within
qRegisterMetaTypeStreamOperators<> already.

Change-Id: Ia782868b49bc97d78e0cec29ef9f8b5709420e2a
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/gui/painting/qpaintbuffer.cpp

index 309b619..03a5d91 100644 (file)
@@ -2114,10 +2114,8 @@ QDataStream &operator>>(QDataStream &stream, QPaintBufferCacheEntryV2 &entry)
 
 static void qRegisterPaintBufferMetaTypes()
 {
-    qRegisterMetaType<QPaintBufferCacheEntry>();
-    qRegisterMetaTypeStreamOperators<QPaintBufferCacheEntry>("QPaintBufferCacheEntry");
-    qRegisterMetaType<QPaintBufferCacheEntryV2>();
-    qRegisterMetaTypeStreamOperators<QPaintBufferCacheEntryV2>("QPaintBufferCacheEntryV2");
+    qRegisterMetaTypeStreamOperators<QPaintBufferCacheEntry>();
+    qRegisterMetaTypeStreamOperators<QPaintBufferCacheEntryV2>();
 }
 
 Q_CONSTRUCTOR_FUNCTION(qRegisterPaintBufferMetaTypes)