diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 09:44:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 11:18:21 +0200 |
commit | 2d009c405714934ae5f95f4131510cb4e9c2493f (patch) | |
tree | 33670e0adb62d646a3e7ecdfadee92e25222be22 /sc/source/filter/oox | |
parent | bdd97cb83e09225905a6272caf91579a0a77d3c2 (diff) |
loplugin:moveit
Change-Id: I2702e716dc669ffbb870d36d060e110288d7a744
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137043
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/oox')
-rw-r--r-- | sc/source/filter/oox/formulabuffer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx index 7fcc4f5e259f..f47599fb3763 100644 --- a/sc/source/filter/oox/formulabuffer.cxx +++ b/sc/source/filter/oox/formulabuffer.cxx @@ -181,7 +181,7 @@ void applySharedFormulas( { // See applyCellFormulaValues svl::SharedString aSS = rStrPool.intern(rDesc.maCellValue); - pCell->SetResultToken(new formula::FormulaStringToken(aSS)); + pCell->SetResultToken(new formula::FormulaStringToken(std::move(aSS))); // If we don't reset dirty, then e.g. disabling macros makes all cells // that use macro functions to show #VALUE! pCell->ResetDirty(); @@ -310,7 +310,7 @@ void applyCellFormulaValues( if (bGeneratorKnownGood) { svl::SharedString aSS = rStrPool.intern(rValueStr); - pCell->SetResultToken(new formula::FormulaStringToken(aSS)); + pCell->SetResultToken(new formula::FormulaStringToken(std::move(aSS))); pCell->ResetDirty(); pCell->SetChanged(false); } |