summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-08-01 15:31:25 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-02 07:12:52 +0200
commit903acd1b191ea7db67be8300ea1ed34b4b23216c (patch)
tree9475e581c49024ebbfa889eeb95f3aba741f06e2
parentbfbe3aa72b7081139434052d7a9257a3487a2694 (diff)
downloadqtlocation-903acd1b191ea7db67be8300ea1ed34b4b23216c.tar.gz
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 <alex.blasche@nokia.com>
-rw-r--r--tests/auto/nokia_services/places_semiauto/tst_places.cpp4
1 files 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<QByteArray> *dataTags,
results->append(NoResults);
}
-Q_DECLARE_METATYPE(tst_QPlaceManagerNokia::ExpectedResults);
-
QTEST_GUILESS_MAIN(tst_QPlaceManagerNokia)
#include "tst_places.moc"