summaryrefslogtreecommitdiff
path: root/src/script/bridge/qscriptdeclarativeclass.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-25 15:15:53 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-26 08:02:32 +0100
commitee32a6b5a0ba187606b9ad3cdfcf73cbbc1ce02f (patch)
tree6f407092e8fd53af85a0a82c18e4d5de8628bc05 /src/script/bridge/qscriptdeclarativeclass.cpp
parentdd6b19788a0cb4b28e4c127a9384e75cc3097943 (diff)
downloadqtscript-ee32a6b5a0ba187606b9ad3cdfcf73cbbc1ce02f.tar.gz
Avoid initializing QFlags with 0 or nullptr
It is being deprecated. Change-Id: I772c028967f3c986674081992f569bd7bbba81a5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/script/bridge/qscriptdeclarativeclass.cpp')
-rw-r--r--src/script/bridge/qscriptdeclarativeclass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/bridge/qscriptdeclarativeclass.cpp b/src/script/bridge/qscriptdeclarativeclass.cpp
index 1149c4f..11b3caa 100644
--- a/src/script/bridge/qscriptdeclarativeclass.cpp
+++ b/src/script/bridge/qscriptdeclarativeclass.cpp
@@ -487,7 +487,7 @@ QScriptDeclarativeClass::queryProperty(Object *object, const Identifier &name,
Q_UNUSED(object);
Q_UNUSED(name);
Q_UNUSED(flags);
- return 0;
+ return {};
}
QScriptDeclarativeClass::Value
@@ -511,7 +511,7 @@ QScriptDeclarativeClass::propertyFlags(Object *object, const Identifier &name)
{
Q_UNUSED(object);
Q_UNUSED(name);
- return 0;
+ return {};
}
QScriptDeclarativeClass::Value QScriptDeclarativeClass::call(Object *object,