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 /basegfx/source/range | |
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 'basegfx/source/range')
-rw-r--r-- | basegfx/source/range/b2dpolyrange.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/basegfx/source/range/b2dpolyrange.cxx b/basegfx/source/range/b2dpolyrange.cxx index 21905e408167..d7d0d61de061 100644 --- a/basegfx/source/range/b2dpolyrange.cxx +++ b/basegfx/source/range/b2dpolyrange.cxx @@ -61,11 +61,8 @@ namespace basegfx void clear() { - std::vector<B2DRange> aTmpRanges; - std::vector<B2VectorOrientation> aTmpOrient; - - maRanges.swap(aTmpRanges); - maOrient.swap(aTmpOrient); + std::vector<B2DRange>().swap(maRanges); + std::vector<B2VectorOrientation>().swap(maOrient); maBounds.reset(); } |