summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-03-16 17:45:00 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-05-05 11:30:53 -0700
commit9330d674a983652d248d6a43fa4adbf5970c3d30 (patch)
treebd9292fcdb14f416922197f36c7707bb52e13591 /test
parentf89cfacab2457602c5bd81ab9da35cede23584e2 (diff)
downloadqtlocation-mapboxgl-9330d674a983652d248d6a43fa4adbf5970c3d30.tar.gz
[core] Use geometry.hpp's point
Diffstat (limited to 'test')
-rw-r--r--test/map/transform.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/map/transform.cpp b/test/map/transform.cpp
index 104ad7085f..a3a62e7ad8 100644
--- a/test/map/transform.cpp
+++ b/test/map/transform.cpp
@@ -79,9 +79,6 @@ TEST(Transform, InvalidLatLng) {
ASSERT_DOUBLE_EQ(10, transform.getLatLng().latitude);
ASSERT_DOUBLE_EQ(8, transform.getLatLng().longitude);
ASSERT_DOUBLE_EQ(4, transform.getScale());
-
- ASSERT_FALSE(transform.latLngToScreenCoordinate(LatLng::null()));
- ASSERT_FALSE(transform.screenCoordinateToLatLng(ScreenCoordinate::null()));
}
@@ -225,7 +222,7 @@ TEST(Transform, Anchor) {
ASSERT_DOUBLE_EQ(10, transform.getZoom());
ASSERT_DOUBLE_EQ(0, transform.getAngle());
- const ScreenCoordinate invalidAnchorPoint = ScreenCoordinate::null();
+ const optional<ScreenCoordinate> invalidAnchorPoint {};
const ScreenCoordinate anchorPoint = { 150, 150 };
const LatLng anchorLatLng = transform.getState().screenCoordinateToLatLng(anchorPoint);