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:
parent
cefb16451a
commit
0d72c7f9de
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue