diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-07 09:27:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-08 09:33:52 +0100 |
commit | 6c91e703354c545e3885a162b47139ade4caae6c (patch) | |
tree | a1bdce2651bc563d483fe1f0c0b6c570c1ed8c1e /svx | |
parent | 950d8b640aa078a8c8fe615b919be809e5da6ee0 (diff) |
cid#1546475 std::swap COPY_INSTEAD_OF_MOVE
Change-Id: Ic5325a85deb370db2091e5ce5209b6408a8652bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160444
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index bb99bf2ae40a..082e22b96807 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -1195,10 +1195,7 @@ bool EnhancedCustomShape2d::GetHandlePosition( const sal_uInt32 nIndex, Point& r { if ( m_aLogicRect.GetHeight() > m_aLogicRect.GetWidth() ) { - css::drawing::EnhancedCustomShapeParameter aFirst = aHandle.aPosition.First; - css::drawing::EnhancedCustomShapeParameter aSecond = aHandle.aPosition.Second; - aHandle.aPosition.First = aSecond; - aHandle.aPosition.Second = aFirst; + std::swap(aHandle.aPosition.First, aHandle.aPosition.Second); } } if (m_bOOXMLShape) |