diff options
Diffstat (limited to 'Common/Buffer.h')
-rwxr-xr-x | Common/Buffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Common/Buffer.h b/Common/Buffer.h index 9d5fcaec..9bd881cf 100755 --- a/Common/Buffer.h +++ b/Common/Buffer.h @@ -26,6 +26,8 @@ public: size_t GetCapacity() const { return _capacity; } void SetCapacity(size_t newCapacity) { + if (newCapacity == _capacity) + return; T *newBuffer; if (newCapacity > 0) { |