replace 0 with Q_NULLPTR in QDBusMetaType::typeToSignature()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-01-07 15:44:44 +00:00
parent 7c5a570afa
commit d220596b9a

View file

@ -436,7 +436,7 @@ const char *QDBusMetaType::typeToSignature(int type)
{
QReadLocker locker(customTypesLock());
if (type >= ct->size())
return 0; // type not registered with us
return Q_NULLPTR; // type not registered with us
const QDBusCustomTypeInfo &info = (*ct).at(type);
@ -444,7 +444,7 @@ const char *QDBusMetaType::typeToSignature(int type)
return info.signature;
if (!info.marshall)
return 0; // type not registered with us
return Q_NULLPTR; // type not registered with us
}
// call to user code to construct the signature type