diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2023-06-21 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2023-12-17 14:59:19 +0500 |
commit | 5b39dc76f1bc82f941d5c800ab9f34407a06b53a (patch) | |
tree | fe5e17420300b715021a76328444088d32047963 /CPP/Common/DynamicBuffer.h | |
parent | 93be7d4abfd4233228f58ee1fbbcd76d91be66a4 (diff) | |
download | 7zip-23.01.tar.gz 7zip-23.01.tar.bz2 7zip-23.01.zip |
23.0123.01
Diffstat (limited to 'CPP/Common/DynamicBuffer.h')
-rw-r--r-- | CPP/Common/DynamicBuffer.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/CPP/Common/DynamicBuffer.h b/CPP/Common/DynamicBuffer.h index f6f6b15..714be4a 100644 --- a/CPP/Common/DynamicBuffer.h +++ b/CPP/Common/DynamicBuffer.h | |||
@@ -1,7 +1,11 @@ | |||
1 | // Common/DynamicBuffer.h | 1 | // Common/DynamicBuffer.h |
2 | 2 | ||
3 | #ifndef __COMMON_DYNAMIC_BUFFER_H | 3 | #ifndef ZIP7_INC_COMMON_DYNAMIC_BUFFER_H |
4 | #define __COMMON_DYNAMIC_BUFFER_H | 4 | #define ZIP7_INC_COMMON_DYNAMIC_BUFFER_H |
5 | |||
6 | #include <string.h> | ||
7 | |||
8 | #include "Common.h" | ||
5 | 9 | ||
6 | template <class T> class CDynamicBuffer | 10 | template <class T> class CDynamicBuffer |
7 | { | 11 | { |
@@ -34,7 +38,7 @@ template <class T> class CDynamicBuffer | |||
34 | } | 38 | } |
35 | 39 | ||
36 | public: | 40 | public: |
37 | CDynamicBuffer(): _items(0), _size(0), _pos(0) {} | 41 | CDynamicBuffer(): _items(NULL), _size(0), _pos(0) {} |
38 | // operator T *() { return _items; } | 42 | // operator T *() { return _items; } |
39 | operator const T *() const { return _items; } | 43 | operator const T *() const { return _items; } |
40 | ~CDynamicBuffer() { delete []_items; } | 44 | ~CDynamicBuffer() { delete []_items; } |