From bfe43bf75d4b604a03f2f327b420da1c09218172 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Fri, 9 Jan 2015 16:05:25 +0100 Subject: Cleanup qRegisterMetaType() calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The non-parameter version is much more secure. Change-Id: I70612c60d780a972bbf9c852f50f7b0c6f2a0402 Reviewed-by: Jędrzej Nowacki --- examples/positioning/weatherinfo/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/positioning/weatherinfo/main.cpp') 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("WeatherInfo", 1, 0, "AppModel"); //! [0] - qRegisterMetaType("WeatherData"); + qRegisterMetaType(); //! [1] const QString mainQmlApp = QStringLiteral("qrc:///weatherinfo.qml"); QQuickView view; -- cgit v1.2.3