aboutsummaryrefslogtreecommitdiff
path: root/src/apps/projsync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps/projsync.cpp')
-rw-r--r--src/apps/projsync.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/apps/projsync.cpp b/src/apps/projsync.cpp
index f78e3a17..8e6ac96b 100644
--- a/src/apps/projsync.cpp
+++ b/src/apps/projsync.cpp
@@ -294,7 +294,8 @@ int main(int argc, char *argv[]) {
}
std::vector<std::string> to_download;
unsigned long long total_size_to_download = 0;
- for (const auto feat : j["features"]) {
+ const auto features = j["features"];
+ for (const auto &feat : features) {
if (!feat.is_object()) {
continue;
}
@@ -411,7 +412,7 @@ int main(int argc, char *argv[]) {
std::vector<std::vector<double>> grid_bboxes;
bool foundMinus180 = false;
bool foundPlus180 = false;
- for (const auto obj : j_coordinates) {
+ for (const auto &obj : j_coordinates) {
if (obj.is_array()) {
const auto tmp = get_bbox(obj);
if (tmp.size() == 4) {