[core] Avoid copying feature properties

This commit is contained in:
Mikhail Pozdnyakov
2019-07-24 18:19:00 +03:00
parent e6e1e15f95
commit 273ad436fb
9 changed files with 19 additions and 9 deletions

View File

@@ -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"));