Skip to content

Commit 28e02d9

Browse files
committed
Explicitly define vector type
1 parent 5067ee9 commit 28e02d9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

source/matplot/util/world_cities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ namespace matplot {
851851
auto x_line = x;
852852
auto y_line = y;
853853
auto names_line = names;
854-
for (int i = pos_to_remove.size() - 1; i >= 0; --i) {
854+
for (size_t i = pos_to_remove.size() - 1; i >= 0; --i) {
855855
x_line.erase(x_line.begin() + pos_to_remove[i]);
856856
y_line.erase(y_line.begin() + pos_to_remove[i]);
857857
names_line.erase(names_line.begin() + pos_to_remove[i]);

source/matplot/util/world_map_10m.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829478,7 +829478,7 @@ std::numeric_limits<double>::quiet_NaN(),
829478829478
-84.35279604099992,
829479829479
-84.352796000999945,
829480829480
};
829481-
return std::make_pair(std::vector(std::begin(x), std::end(x)), std::vector(std::begin(y), std::end(y)));
829481+
return std::make_pair(std::vector<double>(std::begin(x), std::end(x)), std::vector<double>(std::begin(y), std::end(y)));
829482829482
}
829483829483

829484829484
std::pair<std::vector<double>, std::vector<double>>& world_map_10m() {

source/matplot/util/world_map_110m.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10528,7 +10528,7 @@ namespace matplot {
1052810528
-84.472517999202552,
1052910529
-84.71338
1053010530
};
10531-
return std::make_pair(std::vector(std::begin(x), std::end(x)), std::vector(std::begin(y), std::end(y)));
10531+
return std::make_pair(std::vector<double>(std::begin(x), std::end(x)), std::vector<double>(std::begin(y), std::end(y)));
1053210532
}
1053310533

1053410534
std::pair<std::vector<double>, std::vector<double>>& world_map_110m() {

source/matplot/util/world_map_50m.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123703,7 +123703,7 @@ std::numeric_limits<double>::quiet_NaN(),
123703123703
-84.268359375000017,
123704123704
-84.3515625,
123705123705
};
123706-
return std::make_pair(std::vector(std::begin(x), std::end(x)), std::vector(std::begin(y), std::end(y)));
123706+
return std::make_pair(std::vector<double>(std::begin(x), std::end(x)), std::vector<double>(std::begin(y), std::end(y)));
123707123707
}
123708123708

123709123709
std::pair<std::vector<double>, std::vector<double>>& world_map_50m() {

0 commit comments

Comments
 (0)