diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-27 14:59:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-27 22:11:58 +0200 |
commit | 1325d8161a74a3cedc169952eca10f4343e700c4 (patch) | |
tree | 16a084086ecf14d0b6febfea22e4905349809abe /sc | |
parent | 452fcbe0792aa10042bb8cd2cfd6cd29ca754be5 (diff) |
loplugin:moveopt
An attempt that did not find anything convincing enough to finish it up
and make it permanently active.
So just leave it in /store for now.
Change-Id: I1750e177655a4a510da100f880ba81bf762be277
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114742
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh3.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index 8cb71adc0ac0..aec3aa7d5620 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -1124,7 +1124,7 @@ void ScDocShell::MergeDocument( ScDocument& rOtherDoc, bool bShared, bool bCheck pSourceAction = pSourceAction->GetNext(); } - rMarkData = aOldMarkData; + rMarkData = std::move(aOldMarkData); pThisTrack->SetUser(aOldUser); pThisTrack->SetUseFixDateTime( false ); diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index bd234108221b..7cf078fde6c5 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -999,8 +999,7 @@ void ScHelperFunctions::FillBoxItems( SvxBoxItem& rOuter, SvxBoxInfoItem& rInner void ScHelperFunctions::FillBorderLine( table::BorderLine& rStruct, const ::editeng::SvxBorderLine* pLine ) { // Convert from Twips to 1/100mm. - table::BorderLine2 aStruct( SvxBoxItem::SvxLineToLine( pLine, true)); - rStruct = aStruct; + rStruct = SvxBoxItem::SvxLineToLine( pLine, true); } void ScHelperFunctions::FillBorderLine( table::BorderLine2& rStruct, const ::editeng::SvxBorderLine* pLine ) |