mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Merge pull request #1356 from Areloch/PVS_Cleanup_813
Convert un-modified function arguments to const references.
This commit is contained in:
commit
4f2f1ca4e1
40 changed files with 59 additions and 59 deletions
|
|
@ -918,7 +918,7 @@ void DICreateUndoAction::initPersistFields()
|
|||
Parent::initPersistFields();
|
||||
}
|
||||
|
||||
void DICreateUndoAction::addDecal( DecalInstance decal )
|
||||
void DICreateUndoAction::addDecal(const DecalInstance& decal)
|
||||
{
|
||||
mDecalInstance = decal;
|
||||
mDatablockId = decal.mDataBlock->getId();
|
||||
|
|
@ -1006,7 +1006,7 @@ void DIDeleteUndoAction::initPersistFields()
|
|||
Parent::initPersistFields();
|
||||
}
|
||||
|
||||
void DIDeleteUndoAction::deleteDecal( DecalInstance decal )
|
||||
void DIDeleteUndoAction::deleteDecal(const DecalInstance& decal)
|
||||
{
|
||||
mDecalInstance = decal;
|
||||
mDatablockId = decal.mDataBlock->getId();
|
||||
|
|
@ -1094,7 +1094,7 @@ void DBDeleteUndoAction::initPersistFields()
|
|||
Parent::initPersistFields();
|
||||
}
|
||||
|
||||
void DBDeleteUndoAction::deleteDecal( DecalInstance decal )
|
||||
void DBDeleteUndoAction::deleteDecal(const DecalInstance& decal)
|
||||
{
|
||||
mDecalInstanceVec.increment();
|
||||
mDecalInstanceVec.last() = decal;
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ public:
|
|||
DICreateUndoAction( const UTF8* actionName = "Create Decal " );
|
||||
virtual ~DICreateUndoAction();
|
||||
|
||||
void addDecal( DecalInstance decal );
|
||||
void addDecal(const DecalInstance& decal);
|
||||
|
||||
// UndoAction
|
||||
virtual void undo();
|
||||
|
|
@ -159,7 +159,7 @@ public:
|
|||
virtual ~DIDeleteUndoAction();
|
||||
|
||||
///
|
||||
void deleteDecal( DecalInstance decal );
|
||||
void deleteDecal(const DecalInstance& decal);
|
||||
|
||||
// UndoAction
|
||||
virtual void undo();
|
||||
|
|
@ -188,7 +188,7 @@ public:
|
|||
DBDeleteUndoAction( const UTF8* actionName = "Delete Decal Datablock" );
|
||||
virtual ~DBDeleteUndoAction();
|
||||
|
||||
void deleteDecal( DecalInstance decal );
|
||||
void deleteDecal(const DecalInstance& decal);
|
||||
|
||||
// UndoAction
|
||||
virtual void undo();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue