diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-21 16:28:33 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-24 08:36:24 +0100 |
commit | 654c5272299057681d295afb76fc984b20868c7c (patch) | |
tree | 3deb7bb0b8b787f90ae5b95b59f41d9debcbc8ba /hwpfilter | |
parent | b35f6971561bc095965e82f230e0307f6694228b (diff) |
Use ContainerType().swap and avoid local variables
Change-Id: I773555180758a97aff37f9bc27de83c355d71521
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109761
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/attributes.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hwpfilter/source/attributes.cxx b/hwpfilter/source/attributes.cxx index 1c0712b0f9ab..602165ba0c32 100644 --- a/hwpfilter/source/attributes.cxx +++ b/hwpfilter/source/attributes.cxx @@ -143,8 +143,7 @@ const OUString &sValue ) void AttributeListImpl::clear() { - std::vector<struct TagAttribute> dummy; - m_pImpl->vecAttribute.swap( dummy ); + std::vector<struct TagAttribute>().swap(m_pImpl->vecAttribute); assert( ! getLength() ); } |