diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-11-29 14:07:49 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-30 03:50:28 +0100 |
commit | 247c9d0180254e35f159cbabf28433b5e45618ff (patch) | |
tree | a2cb92d052d114967819ffac4e30758cdde87069 /tests/auto/geotestplugin/qgeocodingmanagerengine_test.h | |
parent | af0d9c5fe70cead33d9aaf60ef02952d522c7cf1 (diff) | |
download | qtlocation-247c9d0180254e35f159cbabf28433b5e45618ff.tar.gz |
QtLocation tests: Fix compilation with MSVC.
Cannot cast from double to enum.
Change-Id: I9122bddb004b711c534bdb5867df39ac48a2689b
Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'tests/auto/geotestplugin/qgeocodingmanagerengine_test.h')
-rw-r--r-- | tests/auto/geotestplugin/qgeocodingmanagerengine_test.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/geotestplugin/qgeocodingmanagerengine_test.h b/tests/auto/geotestplugin/qgeocodingmanagerengine_test.h index 1c7db054..897a827b 100644 --- a/tests/auto/geotestplugin/qgeocodingmanagerengine_test.h +++ b/tests/auto/geotestplugin/qgeocodingmanagerengine_test.h @@ -237,7 +237,7 @@ public: if (coordinate.latitude() > 70) { errorString_ = "error"; - errorCode_ = (QGeocodeReply::Error) (coordinate.latitude() - 70); + errorCode_ = (QGeocodeReply::Error) (qRound(coordinate.latitude() - 70)); } else { errorString_ = ""; errorCode_ = QGeocodeReply::NoError; |