From e7f3d21ef0cb1b4bc1b957e473755ee4130eb5f0 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 17 Apr 2014 22:37:18 +0200 Subject: No need for these to be statics. Change-Id: Ia5fef528b7bddae3c6615d5064dcfcf02059f0ec --- sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx b/sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx index a5e5001e645b..8757c2e50362 100644 --- a/sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx +++ b/sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx @@ -29,11 +29,6 @@ namespace { - static const OUString strWildcard1("%VAR1%"); - static const OUString strWildcard2("%VAR2%"); - - static const OUString strWildcardNumber("%NUMBER%"); - void lclWriteCorrelationFormulas( AddressWalkerWriter& aOutput, FormulaTemplate& aTemplate, ScRangeList aRangeList, const OUString& aTemplateString) @@ -46,8 +41,8 @@ namespace if (j >= i) { aTemplate.setTemplate(aTemplateString); - aTemplate.applyRange(strWildcard1, *aRangeList[i]); - aTemplate.applyRange(strWildcard2, *aRangeList[j]); + aTemplate.applyRange("%VAR1%", *aRangeList[i]); + aTemplate.applyRange("%VAR2%", *aRangeList[j]); aOutput.writeFormula(aTemplate.getTemplate()); } aOutput.nextRow(); @@ -91,6 +86,8 @@ ScRange ScMatrixComparisonGenerator::ApplyOutput(ScDocShell* pDocShell) output.writeString(getLabel()); output.nextColumn(); + const OUString strWildcardNumber("%NUMBER%"); + // write labels to columns for (size_t i = 0; i < aRangeList.size(); i++) { -- cgit