clang-tidy modernize-use-auto

This commit is contained in:
Michael Cook (mackal) committed 2016-05-25 16:10:28 -04:00
1 parent cdbeb24a05
commit 60da544d3a
87 files changed
+1465 -1340

No files matched your search

+2 -2
View File
@@ -33,7 +33,7 @@ WaterMap* WaterMap::LoadWaterMapfile(std::string zone_name) {
}
if(version == 1) {
WaterMapV1 *wm = new WaterMapV1();
auto wm = new WaterMapV1();
if(!wm->Load(f)) {
delete wm;
wm = nullptr;
@@ -42,7 +42,7 @@ WaterMap* WaterMap::LoadWaterMapfile(std::string zone_name) {
fclose(f);
return wm;
} else if(version == 2) {
WaterMapV2 *wm = new WaterMapV2();
auto wm = new WaterMapV2();
if(!wm->Load(f)) {
delete wm;
wm = nullptr;