Skip to content

Commit

Permalink
projsync.cpp: fix -Wrange-loop-construct clang10 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 31, 2020
1 parent d3aaf98 commit a0a44ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/apps/projsync.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit a0a44ac

Please sign in to comment.