[Libreoffice-commits] .: Branch 'feature/calc-function-linest-logest' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Thu Nov 4 15:02:38 PDT 2010
sc/source/core/tool/interpr5.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 666817d535aa5b56733fc6aad0e344fa68bdef66
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Thu Nov 4 18:01:45 2010 -0400
Put local functions inside anonymous namespace.
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index f3dcd5c..93763ec 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -1843,6 +1843,9 @@ void ScInterpreter::ScFrequency()
pResMat->PutDouble(static_cast<double>(nDataSize-i), j);
PushMatrix(pResMat);
}
+
+namespace {
+
// -----------------------------------------------------------------------------
// Helper methods for LINEST/LOGEST and TREND/GROWTH
// All matrices must already exist and have the needed size, no control tests
@@ -2229,6 +2232,8 @@ double lcl_GetSSresid(ScMatrixRef pMatX, ScMatrixRef pMatY, double fSlope,
return fSum;
}
+}
+
// Fill default values in matrix X, transform Y to log(Y) in case LOGEST|GROWTH,
// determine sizes of matrices X and Y, determine kind of regression, clone
// Y in case LOGEST|GROWTH, if constant.
More information about the Libreoffice-commits
mailing list