aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc')
-rw-r--r--src/alloc/secmem.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h
index d64a376ca..d2c46a2e5 100644
--- a/src/alloc/secmem.h
+++ b/src/alloc/secmem.h
@@ -106,13 +106,10 @@ class MemoryRegion
* @param in the buffer to copy the contents from.
* @return a reference to *this
*/
- MemoryRegion<T>& operator=(const MemoryRegion<T>& in)
- { if(this != &in) set(in); return (*this); }
+ MemoryRegion<T>& operator=(const MemoryRegion<T>& other)
+ { if(this != &other) set(other); return (*this); }
/**
- * The use of this function is discouraged because of the risk of memory
- * errors. Use MemoryRegion<T>::set()
- * instead.
* Copy the contents of an array of objects of type T into this buffer.
* The former contents of *this are discarded.
* The length of *this must be at least n, otherwise memory errors occur.
@@ -123,9 +120,6 @@ class MemoryRegion
{ copy(0, in, n); }
/**
- * The use of this function is discouraged because of the risk of memory
- * errors. Use MemoryRegion<T>::set()
- * instead.
* Copy the contents of an array of objects of type T into this buffer.
* The former contents of *this are discarded.
* The length of *this must be at least n, otherwise memory errors occur.