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 /src/imports/positioning/positioning.cpp | |
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 'src/imports/positioning/positioning.cpp')
-rw-r--r-- | src/imports/positioning/positioning.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/imports/positioning/positioning.cpp b/src/imports/positioning/positioning.cpp index 13ad1c1c..89c384a6 100644 --- a/src/imports/positioning/positioning.cpp +++ b/src/imports/positioning/positioning.cpp @@ -82,14 +82,14 @@ public: int major = 5; int minor = 0; - qRegisterMetaType<QGeoCoordinate>("QGeoCoordinate"); + qRegisterMetaType<QGeoCoordinate>(); QMetaType::registerEqualsComparator<QGeoCoordinate>(); - qRegisterMetaType<QGeoAddress>("QGeoAddress"); - qRegisterMetaType<QGeoRectangle>("QGeoRectangle"); + qRegisterMetaType<QGeoAddress>(); + qRegisterMetaType<QGeoRectangle>(); QMetaType::registerEqualsComparator<QGeoRectangle>(); - qRegisterMetaType<QGeoCircle>("QGeoCircle"); + qRegisterMetaType<QGeoCircle>(); QMetaType::registerEqualsComparator<QGeoCircle>(); - qRegisterMetaType<QGeoLocation>("QGeoLocation"); + qRegisterMetaType<QGeoLocation>(); qRegisterMetaType<QGeoShape>(); QMetaType::registerEqualsComparator<QGeoShape>(); |