summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-24 18:19:00 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-25 17:36:35 +0300
commit273ad436fb4d2a18c6749bd4e40fa56546e9285c (patch)
treeba1c66084f43adb5d9a66c48279723fc62d35288 /test
parente6e1e15f950dc246e609cf4acf5b9d6ca13f8806 (diff)
downloadqtlocation-mapboxgl-273ad436fb4d2a18c6749bd4e40fa56546e9285c.tar.gz
[core] Avoid copying feature properties
Diffstat (limited to 'test')
-rw-r--r--test/tile/vector_tile.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tile/vector_tile.test.cpp b/test/tile/vector_tile.test.cpp
index b912af1f15..940c0272db 100644
--- a/test/tile/vector_tile.test.cpp
+++ b/test/tile/vector_tile.test.cpp
@@ -98,7 +98,7 @@ TEST(VectorTileData, ParseResults) {
ASSERT_TRUE(feature->getID().is<uint64_t>());
ASSERT_EQ(feature->getID().get<uint64_t>(), 1u);
- std::unordered_map<std::string, Value> properties = feature->getProperties();
+ const std::unordered_map<std::string, Value>& properties = feature->getProperties();
ASSERT_EQ(properties.size(), 3u);
ASSERT_EQ(properties.at("disputed"), *feature->getValue("disputed"));