diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-31 10:52:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-31 13:13:43 +0200 |
commit | c66f655be6412910ad1dc041adb519d2c630fe8d (patch) | |
tree | dd73f36da8995ee13970b3f42e056301c677793a /basic | |
parent | 38b7c85f59e8b4ea2a0ae19ababa4da9c7061e99 (diff) |
cid#1509223 Inefficient vector resizing with reserve.
Change-Id: I12f215d60a7420676523c7cec85bfa5149683841
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139083
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/buffer.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/basic/source/comp/buffer.cxx b/basic/source/comp/buffer.cxx index ff6b5173f3fd..06dafe7a21d7 100644 --- a/basic/source/comp/buffer.cxx +++ b/basic/source/comp/buffer.cxx @@ -49,7 +49,6 @@ template <typename T> void SbiBuffer::append(T n) m_aBuf.clear(); return; } - m_aBuf.reserve(m_aBuf.size() + sizeof(n)); write(std::back_inserter(m_aBuf), n); } |