Codechange: Pass avail(able) as reference instead of pointer since they are never nullptr (#12696)

This commit is contained in:
Loïc Guilloux
2024-05-18 17:04:16 +02:00
committed by GitHub
parent ba47d1ca2b
commit 29ce013eda
33 changed files with 75 additions and 75 deletions
+3 -3
View File
@@ -15,10 +15,10 @@
#include "safeguards.h"
/* virtual */ uint32_t TownScopeResolver::GetVariable(uint8_t variable, [[maybe_unused]] uint32_t parameter, bool *available) const
/* virtual */ uint32_t TownScopeResolver::GetVariable(uint8_t variable, [[maybe_unused]] uint32_t parameter, bool &available) const
{
if (this->t == nullptr) {
*available = false;
available = false;
return UINT_MAX;
}
@@ -119,7 +119,7 @@
Debug(grf, 1, "Unhandled town variable 0x{:X}", variable);
*available = false;
available = false;
return UINT_MAX;
}