diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-01-09 16:05:25 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-01-15 14:26:17 +0100 |
commit | bfe43bf75d4b604a03f2f327b420da1c09218172 (patch) | |
tree | 50e0483f15ded552b5e337bd51b796a2f3c6506e /examples | |
parent | 8d8865a32fb2cdfdd548e8c1c62081f012d0f09a (diff) | |
download | qtlocation-bfe43bf75d4b604a03f2f327b420da1c09218172.tar.gz |
Cleanup qRegisterMetaType<T>() calls
The non-parameter version is much more secure.
Change-Id: I70612c60d780a972bbf9c852f50f7b0c6f2a0402
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/positioning/weatherinfo/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/positioning/weatherinfo/main.cpp b/examples/positioning/weatherinfo/main.cpp index 6f4e0922..e60aee5d 100644 --- a/examples/positioning/weatherinfo/main.cpp +++ b/examples/positioning/weatherinfo/main.cpp @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) qmlRegisterType<AppModel>("WeatherInfo", 1, 0, "AppModel"); //! [0] - qRegisterMetaType<WeatherData>("WeatherData"); + qRegisterMetaType<WeatherData>(); //! [1] const QString mainQmlApp = QStringLiteral("qrc:///weatherinfo.qml"); QQuickView view; |