diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-10-12 13:30:30 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-10-12 13:34:48 +0200 |
commit | 190334febe62d56d80489034f0ee3cf59100f6c4 (patch) | |
tree | 4cde37896e4b6a00bc84fbc5e69fbe41a8f8dcb9 /scaddins | |
parent | f7a24eff2d40ca30c6f299ab6534393c5c146b95 (diff) |
mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html
Change-Id: I1a0e436051d48e7f6224d6f0fc602347df2d4df1
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 4 | ||||
-rw-r--r-- | scaddins/source/analysis/financial.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index cdd6ed123f93..b075bafe0148 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -1176,7 +1176,7 @@ double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF ) //------- // COUPPCD: find last coupon date before settlement (can be equal to settlement) -void lcl_GetCouppcd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq ) +static void lcl_GetCouppcd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq ) throw( lang::IllegalArgumentException ) { rDate = rMat; @@ -1201,7 +1201,7 @@ double GetCouppcd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_I //------- // COUPNCD: find first coupon date after settlement (is never equal to settlement) -void lcl_GetCoupncd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq ) +static void lcl_GetCoupncd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq ) throw( lang::IllegalArgumentException ) { rDate = rMat; diff --git a/scaddins/source/analysis/financial.cxx b/scaddins/source/analysis/financial.cxx index 14415dde68ec..eb1cac59a372 100644 --- a/scaddins/source/analysis/financial.cxx +++ b/scaddins/source/analysis/financial.cxx @@ -455,7 +455,7 @@ double SAL_CALL AnalysisAddIn::getOddlyield( constREFXPS& xOpt, #define D_(i) (*rDates.Get(i)) /** Calculates the resulting amount for the passed interest rate and the given XIRR parameters. */ -double lcl_sca_XirrResult( const ScaDoubleList& rValues, const ScaDoubleList& rDates, double fRate ) +static double lcl_sca_XirrResult( const ScaDoubleList& rValues, const ScaDoubleList& rDates, double fRate ) { /* V_0 ... V_n = input values. D_0 ... D_n = input dates. @@ -477,7 +477,7 @@ double lcl_sca_XirrResult( const ScaDoubleList& rValues, const ScaDoubleList& rD } /** Calculates the first derivation of lcl_sca_XirrResult(). */ -double lcl_sca_XirrResult_Deriv1( const ScaDoubleList& rValues, const ScaDoubleList& rDates, double fRate ) +static double lcl_sca_XirrResult_Deriv1( const ScaDoubleList& rValues, const ScaDoubleList& rDates, double fRate ) { /* V_0 ... V_n = input values. D_0 ... D_n = input dates. |