aboutsummaryrefslogtreecommitdiff
path: root/src/tools/vmap4_assembler/VMapAssembler.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-07-05 13:09:00 +0200
committerShauren <shauren.trinity@gmail.com>2024-07-05 13:09:00 +0200
commitc8a55f4a18052fa00e74a4fefdaf4a428252e1f9 (patch)
treec827c93e4fccbab1c8fa22d320166b5b007ac087 /src/tools/vmap4_assembler/VMapAssembler.cpp
parent76a36113178cdfceeb2db40126c0ee171dc4dbcd (diff)
Core/Vmaps: Minor cleanup in vmap4assembler - use unique_ptr to manage file handles
Diffstat (limited to 'src/tools/vmap4_assembler/VMapAssembler.cpp')
-rw-r--r--src/tools/vmap4_assembler/VMapAssembler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tools/vmap4_assembler/VMapAssembler.cpp b/src/tools/vmap4_assembler/VMapAssembler.cpp
index 38eb53ed9be..031a5c8dcb7 100644
--- a/src/tools/vmap4_assembler/VMapAssembler.cpp
+++ b/src/tools/vmap4_assembler/VMapAssembler.cpp
@@ -49,16 +49,14 @@ int main(int argc, char* argv[])
std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;
- VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest);
+ VMAP::TileAssembler ta(std::move(src), std::move(dest));
- if (!ta->convertWorld2())
+ if (!ta.convertWorld2())
{
std::cout << "exit with errors" << std::endl;
- delete ta;
return 1;
}
- delete ta;
std::cout << "Ok, all done" << std::endl;
return 0;
}