1
0

Make some local variables in public headers const

Shutting up code analyser.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6392 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien
2022-05-13 14:42:13 +00:00
parent cc9edcb973
commit d90d1ae93b
5 changed files with 14 additions and 15 deletions

View File

@@ -186,7 +186,7 @@ namespace scene
SMD3QuaternionTag* get(const core::stringc& name)
{
SMD3QuaternionTag search ( name );
s32 index = Container.linear_search ( search );
const s32 index = Container.linear_search ( search );
if ( index >= 0 )
return &Container[index];
return 0;
@@ -199,7 +199,7 @@ namespace scene
void set_used(u32 new_size)
{
s32 diff = (s32) new_size - (s32) Container.allocated_size();
const s32 diff = (s32) new_size - (s32) Container.allocated_size();
if ( diff > 0 )
{
SMD3QuaternionTag e("");