summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/interpr4.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 08:20:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:38:02 +0200
commit87c06415cebd707ae359cb2f1b06d468cb6afb08 (patch)
tree2732c68fcc98c03f6fecddc59000e9e25b067c2d /sc/source/core/tool/interpr4.cxx
parentf31c9f16fefd16ea434cdd68721d45bced9b78e1 (diff)
clang-tidy performance-unnecessary-copy-init in sc
Change-Id: I93ded61c22bd533a6ffaddd20d6e527f176e7651 Reviewed-on: https://gerrit.libreoffice.org/62218 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/tool/interpr4.cxx')
-rw-r--r--sc/source/core/tool/interpr4.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index 2cc8bc184b4b..f5ca631979e6 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -1703,8 +1703,7 @@ void ScInterpreter::QueryMatrixType(const ScMatrixRef& xMat, SvNumFormatType& rR
}
else
{
- svl::SharedString aStr( nMatVal.GetString());
- FormulaTokenRef xRes = new FormulaStringToken( aStr);
+ FormulaTokenRef xRes = new FormulaStringToken( nMatVal.GetString() );
PushTempToken( new ScMatrixFormulaCellToken(nCols, nRows, xMat, xRes.get()));
rRetTypeExpr = SvNumFormatType::TEXT;
}
@@ -3037,8 +3036,7 @@ void ScInterpreter::ScExternal()
}
else if ( aCall.HasMatrix() )
{
- ScMatrixRef xMat = aCall.GetMatrix();
- PushMatrix( xMat );
+ PushMatrix( aCall.GetMatrix() );
}
else if ( aCall.HasString() )
{