aboutsummaryrefslogtreecommitdiff
path: root/CPP/Common/DynamicBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/Common/DynamicBuffer.h10
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
6template <class T> class CDynamicBuffer 10template <class T> class CDynamicBuffer
7{ 11{
@@ -34,7 +38,7 @@ template <class T> class CDynamicBuffer
34 } 38 }
35 39
36public: 40public:
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; }