aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-06-09 10:24:58 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-06-09 16:49:41 +0200
commit40d50d37bc7ca138e21be0db66109e4e1bd60594 (patch)
tree2ae2c5a758c0f9c4b872bc69d1a22dd621bb3430 /src/qml/qml/qqmlmetatype.cpp
parentb55c3d4f6cc14416c64a7e796abe3d9fd996fc94 (diff)
QQmlMetaType: Drop unneeded second arguments to QHash::value()
Change-Id: I351785ed33e7b28f2241a113c96ca32fae4b8111 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r--src/qml/qml/qqmlmetatype.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp
index 5e66758b43..ec16ec7cd2 100644
--- a/src/qml/qml/qqmlmetatype.cpp
+++ b/src/qml/qml/qqmlmetatype.cpp
@@ -390,7 +390,7 @@ bool checkRegistration(QQmlType::RegistrationType typeType, QQmlMetaTypeData *da
if (uri && !typeName.isEmpty()) {
QString nameSpace = QString::fromUtf8(uri);
QQmlMetaTypeData::VersionedUri versionedUri(nameSpace, version);
- if (QQmlTypeModule* qqtm = data->uriToModule.value(versionedUri, 0)){
+ if (QQmlTypeModule *qqtm = data->uriToModule.value(versionedUri)){
if (qqtm->isLocked()){
QString failure(QCoreApplication::translate("qmlRegisterType",
"Cannot install %1 '%2' into protected module '%3' version '%4'"));
@@ -610,8 +610,8 @@ bool QQmlMetaType::protectModule(const QString &uri, QTypeRevision version)
{
QQmlMetaTypeDataPtr data;
- if (QQmlTypeModule* qqtm = data->uriToModule.value(
- QQmlMetaTypeData::VersionedUri(uri, version), nullptr)) {
+ if (QQmlTypeModule *qqtm = data->uriToModule.value(
+ QQmlMetaTypeData::VersionedUri(uri, version))) {
qqtm->lock();
return true;
}