diff options
author | lloyd <[email protected]> | 2010-09-13 21:52:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-13 21:52:35 +0000 |
commit | 5f028221205537ee91ba4dede04d977daaa61b1b (patch) | |
tree | e27730bc051a15e7c2ae35f42c63ba8dc9e909f9 /src | |
parent | 3a8202e6c0a372e222d03744686241e8101829d3 (diff) |
Don't expose init (protected) with a using directive
Diffstat (limited to 'src')
-rw-r--r-- | src/alloc/secmem.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h index 194a78e5f..1d6b99f22 100644 --- a/src/alloc/secmem.h +++ b/src/alloc/secmem.h @@ -285,7 +285,6 @@ class MemoryVector : public MemoryRegion<T> { public: using MemoryRegion<T>::set; - using MemoryRegion<T>::init; using MemoryRegion<T>::append; /** @@ -304,7 +303,7 @@ class MemoryVector : public MemoryRegion<T> * Create a buffer of the specified length. * @param n the length of the buffer to create. */ - MemoryVector(u32bit n = 0) { init(false, n); } + MemoryVector(u32bit n = 0) { this->init(false, n); } /** * Create a buffer with the specified contents. @@ -313,13 +312,13 @@ class MemoryVector : public MemoryRegion<T> * @param n the size of the arry in */ MemoryVector(const T in[], u32bit n) - { init(false); set(in, n); } + { this->init(false); set(in, n); } /** * Copy constructor. */ MemoryVector(const MemoryRegion<T>& in) - { init(false); set(&in[0], in.size()); } + { this->init(false); set(&in[0], in.size()); } }; /** @@ -334,7 +333,6 @@ class SecureVector : public MemoryRegion<T> public: using MemoryRegion<T>::copy; using MemoryRegion<T>::set; - using MemoryRegion<T>::init; using MemoryRegion<T>::append; /** @@ -350,7 +348,7 @@ class SecureVector : public MemoryRegion<T> * @param n the length of the buffer to create. */ SecureVector(u32bit n = INITIAL_LEN) - { init(true, n); } + { this->init(true, n); } /** * Create a buffer with the specified contents. @@ -360,7 +358,7 @@ class SecureVector : public MemoryRegion<T> */ SecureVector(const T in[], u32bit n) { - init(true, INITIAL_LEN); + this->init(true, INITIAL_LEN); if(INITIAL_LEN) copy(&in[0], n); else @@ -374,7 +372,7 @@ class SecureVector : public MemoryRegion<T> */ SecureVector(const MemoryRegion<T>& in) { - init(true, INITIAL_LEN); + this->init(true, INITIAL_LEN); if(INITIAL_LEN) copy(&in[0], in.size()); else |