Skipping ContractionCleantup entirely. Avoids a big allocation. Removing

DELETE() macro.
This commit is contained in:
DennisOSRM
2012-04-12 19:35:47 +02:00
parent b16f3f91d9
commit e104017d4c
7 changed files with 35 additions and 34 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
#include "NASAGridSquare.h"
NasaGridSquare::~NasaGridSquare() {
DELETE(elevationMap);
delete elevationMap;
}
std::string NasaGridSquare::make_filename(const char* ext) const {
@@ -66,7 +66,7 @@ void NasaGridSquare::load(const char* filename) {
INFO("uncompressed: " << stat.size);
INFO("compressed: " << stat.comp_size);
num_bytes = stat.size;
DELETE(elevationMap);
delete elevationMap;
elevationMap = new char[stat.size];
zip_file * file = zip_fopen_index(test, 0, 0 );