2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-24 21:52:06 +00:00

chore: use auto instead of repeated types

This commit is contained in:
Jan Laupetin
2025-11-09 22:09:06 +01:00
parent e9e0c7f511
commit 9471cbc1f4
9 changed files with 47 additions and 47 deletions

View File

@@ -32,12 +32,12 @@ namespace
bool FinalizeZone(AssetCreationContext& context) override
{
const std::unique_ptr<BSPData> bsp = BSP::createBSPData(m_zone.m_name, m_search_path);
const auto bsp = BSP::createBSPData(m_zone.m_name, m_search_path);
if (bsp == nullptr)
return false;
BSPLinker linker(m_memory, m_search_path, context);
const bool result = linker.linkBSP(*bsp);
const auto result = linker.linkBSP(*bsp);
if (!result)
con::error("BSP link has failed.");