From 5f028221205537ee91ba4dede04d977daaa61b1b Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 13 Sep 2010 21:52:35 +0000 Subject: Don't expose init (protected) with a using directive --- src/alloc/secmem.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/alloc') 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 { public: using MemoryRegion::set; - using MemoryRegion::init; using MemoryRegion::append; /** @@ -304,7 +303,7 @@ class MemoryVector : public MemoryRegion * 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 * @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& in) - { init(false); set(&in[0], in.size()); } + { this->init(false); set(&in[0], in.size()); } }; /** @@ -334,7 +333,6 @@ class SecureVector : public MemoryRegion public: using MemoryRegion::copy; using MemoryRegion::set; - using MemoryRegion::init; using MemoryRegion::append; /** @@ -350,7 +348,7 @@ class SecureVector : public MemoryRegion * @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 */ 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 */ SecureVector(const MemoryRegion& in) { - init(true, INITIAL_LEN); + this->init(true, INITIAL_LEN); if(INITIAL_LEN) copy(&in[0], in.size()); else -- cgit v1.2.3