diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-04-17 22:37:18 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-04-18 22:48:08 +0200 |
commit | e7f3d21ef0cb1b4bc1b957e473755ee4130eb5f0 (patch) | |
tree | b27d075d526c043bff1921657eaa475061d19632 | |
parent | d5556631e9acbd4af310e6300f4442ae9ab3b5da (diff) |
No need for these to be statics.
Change-Id: Ia5fef528b7bddae3c6615d5064dcfcf02059f0ec
-rw-r--r-- | sc/source/ui/StatisticsDialogs/MatrixComparisonGenerator.cxx | 11 |
1 files 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++) { |