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:
parent
73038ec826
commit
59ebafbce2
1 changed files with 2 additions and 6 deletions
|
@ -161,12 +161,8 @@ namespace
|
|||
OUString aSourceFieldName(_aDragLeft->GetField());
|
||||
OUString aDestFieldName(_aDragRight->GetField());
|
||||
// the connection could point on the other side
|
||||
if(pConn->GetSourceWin() == _aDragRight->GetTabWindow())
|
||||
{
|
||||
OUString aTmp(aSourceFieldName);
|
||||
aSourceFieldName = aDestFieldName;
|
||||
aDestFieldName = aTmp;
|
||||
}
|
||||
if (pConn->GetSourceWin() == _aDragRight->GetTabWindow())
|
||||
std::swap(aSourceFieldName, aDestFieldName);
|
||||
pConn->GetData()->AppendConnLine( aSourceFieldName,aDestFieldName);
|
||||
pConn->UpdateLineList();
|
||||
// Modified-Flag
|
||||
|
|
Loading…
Reference in a new issue