summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-09 21:45:20 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-10 11:57:42 +0100
commitd03dc3dfcede8f9b00cc9be4b0b1f25749a53c61 (patch)
tree714777c1d1143f6764350ea474b0195fbdaa56a1 /chart2/source
parent15ff0c3828406aa00d8fa0d1e7de90916f9c13cc (diff)
cid#1545912 std::swap COPY_INSTEAD_OF_MOVE
Change-Id: Ib3468b43015821225d0236fca5550392f69e1154 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160523 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/tools/InternalData.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx
index d6321d317914..e6e926078eb3 100644
--- a/chart2/source/tools/InternalData.cxx
+++ b/chart2/source/tools/InternalData.cxx
@@ -277,9 +277,7 @@ void InternalData::swapColumnWithNext( sal_Int32 nColumnIndex )
std::swap(m_aData[nIndex1], m_aData[nIndex2]);
}
- std::vector< uno::Any > aTemp( m_aColumnLabels[nColumnIndex] );
- m_aColumnLabels[nColumnIndex] = m_aColumnLabels[nColumnIndex + 1];
- m_aColumnLabels[nColumnIndex + 1] = aTemp;
+ std::swap(m_aColumnLabels[nColumnIndex], m_aColumnLabels[nColumnIndex + 1]);
}
bool InternalData::enlargeData( sal_Int32 nColumnCount, sal_Int32 nRowCount )