Replace 0 with nullptr

This commit is contained in:
Jonas Kvinge
2020-06-14 17:02:47 +02:00
parent ef34dce4dc
commit 2fbdb29ebc
19 changed files with 62 additions and 63 deletions

View File

@@ -657,7 +657,7 @@ const char *EnumToString(const QMetaObject &meta, const char *name, int value) {
if (index == -1) return "[UnknownEnum]";
QMetaEnum metaenum = meta.enumerator(index);
const char *result = metaenum.valueToKey(value);
if (result == 0) return "[UnknownEnumValue]";
if (!result) return "[UnknownEnumValue]";
return result;
}