Editor/Undo: Mark relevant variables as maybe unused

Prevents potential warnings on release mode.
This commit is contained in:
Lioncache
2025-12-07 02:30:02 -05:00
parent deb1aaae01
commit f577335087
4 changed files with 9 additions and 9 deletions

View File

@@ -35,11 +35,11 @@ public:
protected:
void DoMove(const TString& rkPath, bool IsAutoDir)
{
TString ResName = mpEntry->CookedAssetPath(true).GetFileName();
const TString ResName = mpEntry->CookedAssetPath(true).GetFileName();
gpEdApp->ResourceBrowser()->ResourceAboutToBeMoved(mpEntry, TO_QSTRING(rkPath + ResName));
CVirtualDirectory *pOldDir = mpEntry->Directory();
bool Success = mpEntry->Move(rkPath, IsAutoDir);
[[maybe_unused]] const bool Success = mpEntry->Move(rkPath, IsAutoDir);
ASSERT(Success); // todo better error handling
gpEdApp->ResourceBrowser()->ResourceMoved(mpEntry, pOldDir, mpEntry->Name());