aboutsummaryrefslogtreecommitdiff
path: root/src/4D_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/4D_api.cpp')
-rw-r--r--src/4D_api.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp
index 0c26840d..86c0e071 100644
--- a/src/4D_api.cpp
+++ b/src/4D_api.cpp
@@ -977,9 +977,7 @@ static void reproject_bbox(PJ* pjGeogToCrs,
maxx = -maxx;
maxy = -maxy;
- std::vector<double> x, y;
- x.resize(21 * 4);
- y.resize(21 * 4);
+ std::vector<double> x(21 * 4), y(21 * 4);
for( int j = 0; j <= 20; j++ )
{
x[j] = west_lon + j * (east_lon - west_lon) / 20;