QPaintBuffer: use the nullary version of qRegisterMetaTypeStreamOperators()
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>
This commit is contained in:
parent
e20047c6cb
commit
401e6f2581
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user