summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2019-03-08 15:53:25 +0200
committerAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2019-03-14 18:33:11 +0200
commit11de777628e9e2c4b219bae3f1a6eabd86f2a3c5 (patch)
tree202156e7253dbc6cbb5fc5c4a04a98e8ed55e681 /test
parenta73cc9d8e363b0b3f4fa66c5d9c34625dffbb7e5 (diff)
downloadqtlocation-mapboxgl-11de777628e9e2c4b219bae3f1a6eabd86f2a3c5.tar.gz
[core] Remove optional from Map::setLatLngBounds()
This is a first step into grouping together bounds related Map methods into one that takes a "BoundOptions" object. LatLngBounds::unbounded() replaces an undefined optional<LatLngBounds>. v2: Document LatLngBounds::unbounded()
Diffstat (limited to 'test')
-rw-r--r--test/map/transform.test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/map/transform.test.cpp b/test/map/transform.test.cpp
index 441794886d..33d325dfb2 100644
--- a/test/map/transform.test.cpp
+++ b/test/map/transform.test.cpp
@@ -583,7 +583,7 @@ TEST(Transform, LatLngBounds) {
transform.jumpTo(CameraOptions().withCenter(LatLng()).withZoom(transform.getState().getMaxZoom()));
// Default bounds.
- ASSERT_EQ(transform.getState().getLatLngBounds(), optional<LatLngBounds> {});
+ ASSERT_EQ(transform.getState().getLatLngBounds(), LatLngBounds::unbounded());
ASSERT_EQ(transform.getLatLng(), nullIsland);
// Invalid bounds.
@@ -591,7 +591,7 @@ TEST(Transform, LatLngBounds) {
transform.setLatLngBounds(LatLngBounds::empty());
ASSERT_TRUE(false) << "Should throw";
} catch (...) {
- ASSERT_EQ(transform.getState().getLatLngBounds(), optional<LatLngBounds> {});
+ ASSERT_EQ(transform.getState().getLatLngBounds(), LatLngBounds::unbounded());
}
transform.jumpTo(CameraOptions().withCenter(sanFrancisco));