diff options
author | lloyd <[email protected]> | 2010-09-15 14:24:14 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-15 14:24:14 +0000 |
commit | ca0cdf81ebac6b04164766df46e8c03d454af962 (patch) | |
tree | b0182438524a4c806430ed6c971c52ef7dc81279 /src/alloc/secmem.h | |
parent | 56e4dc1159a3508aab042740e04f4450ed9c1a1a (diff) |
Use push_back for the single value += operator
Diffstat (limited to 'src/alloc/secmem.h')
-rw-r--r-- | src/alloc/secmem.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h index 5c8bd377b..bec20b131 100644 --- a/src/alloc/secmem.h +++ b/src/alloc/secmem.h @@ -373,9 +373,7 @@ template<typename T> MemoryRegion<T>& operator+=(MemoryRegion<T>& out, T in) { - const u32bit copy_offset = out.size(); - out.resize(out.size() + 1); - copy_mem(&out[copy_offset], &in, 1); + out.push_back(in); return out; } |