cid#1545692 std::swap COPY_INSTEAD_OF_MOVE

Change-Id: Ic0679eccd7cc781fb799b15fbb2660fcbd1445f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160447
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2023-12-07 20:35:47 +00:00
parent 73038ec826
commit 59ebafbce2

View file

@ -162,11 +162,7 @@ namespace
OUString aDestFieldName(_aDragRight->GetField());
// the connection could point on the other side
if (pConn->GetSourceWin() == _aDragRight->GetTabWindow())
{
OUString aTmp(aSourceFieldName);
aSourceFieldName = aDestFieldName;
aDestFieldName = aTmp;
}
std::swap(aSourceFieldName, aDestFieldName);
pConn->GetData()->AppendConnLine( aSourceFieldName,aDestFieldName);
pConn->UpdateLineList();
// Modified-Flag