Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Common/Buffer.h')
-rwxr-xr-xCPP/Common/Buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/CPP/Common/Buffer.h b/CPP/Common/Buffer.h
index 0b8ac804..78a68a6d 100755
--- a/CPP/Common/Buffer.h
+++ b/CPP/Common/Buffer.h
@@ -10,13 +10,13 @@ template <class T> class CBuffer
protected:
size_t _capacity;
T *_items;
+public:
void Free()
{
delete []_items;
_items = 0;
_capacity = 0;
}
-public:
CBuffer(): _capacity(0), _items(0) {};
CBuffer(const CBuffer &buffer): _capacity(0), _items(0) { *this = buffer; }
CBuffer(size_t size): _items(0), _capacity(0) { SetCapacity(size); }