mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-16 16:37:02 +00:00
Editor/Undo: Mark relevant variables as maybe unused
Prevents potential warnings on release mode.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user