cid#1554775 COPY_INSTEAD_OF_MOVE

Change-Id: I75b3205b23b43ba639b75808d0a832418f7d7c24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169976
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 2024-07-04 08:48:07 +01:00
parent cefb16451a
commit 0d72c7f9de

View file

@ -150,7 +150,7 @@ void LwpFribBookMark::RegisterStyle(LwpFoundry* pFoundry)
xMarkStart->SetDivision(sDivision);
xMarkStart->SetName(name);
pMarkMgr->AddXFBookmarkStart(name, xMarkStart.get()); //add to map
m_xStart = xMarkStart;
m_xStart = std::move(xMarkStart);
}
else if (type == MARKER_END)
{
@ -158,7 +158,7 @@ void LwpFribBookMark::RegisterStyle(LwpFoundry* pFoundry)
xMarkEnd->SetDivision(sDivision);
xMarkEnd->SetName(name);
pMarkMgr->AddXFBookmarkEnd(name, xMarkEnd.get()); //add to map
m_xEnd = xMarkEnd;
m_xEnd = std::move(xMarkEnd);
}
}