Improved const correctness of local variables. There are no functional changes intended.

This commit is contained in:
orbitcowboy
2019-01-15 11:28:49 +01:00
parent 8f4a9a8cc2
commit 0e7f289590
2 changed files with 13 additions and 13 deletions

View File

@@ -303,7 +303,7 @@ private:
TIXMLASSERT( cap > 0 );
if ( cap > _allocated ) {
TIXMLASSERT( cap <= INT_MAX / 2 );
int newAllocated = cap * 2;
const int newAllocated = cap * 2;
T* newMem = new T[newAllocated];
TIXMLASSERT( newAllocated >= _size );
memcpy( newMem, _mem, sizeof(T)*_size ); // warning: not using constructors, only works for PODs