From 903acd1b191ea7db67be8300ea1ed34b4b23216c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 1 Aug 2012 15:31:25 +0200 Subject: Fix compilation with GCC 4.7 (C++11 mode) The Q_DECLARE_METATYPE macro must appear before the use of the type in QFETCH. The error was: error: static assertion failed: Type is not registered, please use Q_DECLARE_METATYPE macro to make it know to Qt's meta-object system Change-Id: Iaf2ecbcca194d0abea6623ff200493b44d0e266b Reviewed-by: Alex --- tests/auto/nokia_services/places_semiauto/tst_places.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/nokia_services/places_semiauto/tst_places.cpp b/tests/auto/nokia_services/places_semiauto/tst_places.cpp index b2e1f44a..6d2e223a 100644 --- a/tests/auto/nokia_services/places_semiauto/tst_places.cpp +++ b/tests/auto/nokia_services/places_semiauto/tst_places.cpp @@ -98,6 +98,8 @@ private: QGeoServiceProvider *provider; }; +Q_DECLARE_METATYPE(tst_QPlaceManagerNokia::ExpectedResults) + const QLatin1String tst_QPlaceManagerNokia::AuvergneEmbassyId("250u09tv-be16478e55314b338c551aab2651c9d3"); const QLatin1String tst_QPlaceManagerNokia::ProxyEnv("NOKIA_PLUGIN_PROXY"); @@ -759,8 +761,6 @@ void tst_QPlaceManagerNokia::commonAreas(QList *dataTags, results->append(NoResults); } -Q_DECLARE_METATYPE(tst_QPlaceManagerNokia::ExpectedResults); - QTEST_GUILESS_MAIN(tst_QPlaceManagerNokia) #include "tst_places.moc" -- cgit v1.2.1