mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-15 03:41:30 +00:00
Unify increments and decrements
This commit is contained in:
parent
4fe8c102da
commit
3161a33c86
@ -367,8 +367,8 @@ public:
|
|||||||
if ( _currentAllocs > _maxAllocs ) {
|
if ( _currentAllocs > _maxAllocs ) {
|
||||||
_maxAllocs = _currentAllocs;
|
_maxAllocs = _currentAllocs;
|
||||||
}
|
}
|
||||||
_nAllocs++;
|
++_nAllocs;
|
||||||
_nUntracked++;
|
++_nUntracked;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -391,7 +391,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SetTracked() {
|
void SetTracked() {
|
||||||
_nUntracked--;
|
--_nUntracked;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Untracked() const {
|
int Untracked() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user