mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 07:33:45 +00:00
Issue found with PVS-Studio:
A lot of instances where some function args are not actually modified in any way, meaning that it is better for performance to convert them into const references. This prevents an additional copy, which can help performance.
This commit is contained in:
parent
ec63398042
commit
11398bb04e
40 changed files with 59 additions and 59 deletions
|
|
@ -248,7 +248,7 @@ fxFoliageCulledList::fxFoliageCulledList(Box3F SearchBox, fxFoliageCulledList* I
|
|||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void fxFoliageCulledList::FindCandidates(Box3F SearchBox, fxFoliageCulledList* InVec)
|
||||
void fxFoliageCulledList::FindCandidates(const Box3F& SearchBox, fxFoliageCulledList* InVec)
|
||||
{
|
||||
// Search the Culled List.
|
||||
for (U32 i = 0; i < InVec->GetListCount(); i++)
|
||||
|
|
@ -1028,7 +1028,7 @@ void fxFoliageReplicator::SetupBuffers()
|
|||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Box3F fxFoliageReplicator::FetchQuadrant(Box3F Box, U32 Quadrant)
|
||||
Box3F fxFoliageReplicator::FetchQuadrant(const Box3F& Box, U32 Quadrant)
|
||||
{
|
||||
Box3F QuadrantBox;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue