mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Const references!
This commit is contained in:
@@ -583,7 +583,7 @@ std::string mvt_value::toString() const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void mvt_layer::tag(mvt_feature &feature, std::string key, mvt_value value) {
|
void mvt_layer::tag(mvt_feature &feature, std::string const &key, mvt_value const &value) {
|
||||||
size_t ko, vo;
|
size_t ko, vo;
|
||||||
|
|
||||||
// initialize lazily the first time anyone tags an attribute
|
// initialize lazily the first time anyone tags an attribute
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ struct mvt_layer {
|
|||||||
long long extent = 0;
|
long long extent = 0;
|
||||||
|
|
||||||
// Add a key-value pair to a feature, using this layer's constant pool
|
// Add a key-value pair to a feature, using this layer's constant pool
|
||||||
void tag(mvt_feature &feature, std::string key, mvt_value value);
|
void tag(mvt_feature &feature, std::string const &key, mvt_value const &value);
|
||||||
|
|
||||||
// For tracking the key-value constants already used in this layer
|
// For tracking the key-value constants already used in this layer
|
||||||
std::unordered_map<std::string, size_t> key_map{};
|
std::unordered_map<std::string, size_t> key_map{};
|
||||||
|
|||||||
Reference in New Issue
Block a user