summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-24 11:38:51 +0200
committerNoel Grandin <noel@peralex.com>2016-03-24 11:41:01 +0200
commit682b9b33c71066bbf703c22e9689367e7bd569b6 (patch)
tree98a123ad26a73f6635ff86fdf0d16cfc7f7c33d7 /scaddins
parentc09d0aa46ceaeb96869eae1a23a86040189472f4 (diff)
loplugin:constantparam in sc
Change-Id: I8608a6cb47972e9b838cc5ea431863348758ded0
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysis.cxx4
-rw-r--r--scaddins/source/analysis/analysishelper.cxx7
-rw-r--r--scaddins/source/analysis/analysishelper.hxx5
3 files changed, 7 insertions, 9 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index 92fb4e64bafa..3375481aa935 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -461,7 +461,7 @@ sal_Int32 SAL_CALL AnalysisAddIn::getWorkday( const uno::Reference< beans::XProp
SortedIndividualInt32List aSrtLst;
- aSrtLst.InsertHolidayList( aAnyConv, xOptions, aHDay, nNullDate, false );
+ aSrtLst.InsertHolidayList( aAnyConv, xOptions, aHDay, nNullDate );
sal_Int32 nActDate = nDate + nNullDate;
@@ -569,7 +569,7 @@ sal_Int32 SAL_CALL AnalysisAddIn::getNetworkdays( const uno::Reference< beans::X
SortedIndividualInt32List aSrtLst;
- aSrtLst.InsertHolidayList( aAnyConv, xOpt, aHDay, nNullDate, false );
+ aSrtLst.InsertHolidayList( aAnyConv, xOpt, aHDay, nNullDate );
sal_Int32 nActDate = nStartDate + nNullDate;
sal_Int32 nStopDate = nEndDate + nNullDate;
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 3ce6a18635a4..55982791c07e 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -1533,8 +1533,7 @@ void SortedIndividualInt32List::InsertHolidayList(
ScaAnyConverter& rAnyConv,
const uno::Reference< beans::XPropertySet >& xOptions,
const uno::Any& rHolAny,
- sal_Int32 nNullDate,
- bool bInsertOnWeekend ) throw( uno::RuntimeException, lang::IllegalArgumentException )
+ sal_Int32 nNullDate ) throw( uno::RuntimeException, lang::IllegalArgumentException )
{
rAnyConv.init( xOptions );
if( rHolAny.getValueTypeClass() == uno::TypeClass_SEQUENCE )
@@ -1549,14 +1548,14 @@ void SortedIndividualInt32List::InsertHolidayList(
const uno::Any* pAnyArray = rSubSeq.getConstArray();
for( sal_Int32 nIndex2 = 0; nIndex2 < rSubSeq.getLength(); nIndex2++ )
- InsertHolidayList( rAnyConv, pAnyArray[ nIndex2 ], nNullDate, bInsertOnWeekend );
+ InsertHolidayList( rAnyConv, pAnyArray[ nIndex2 ], nNullDate, false/*bInsertOnWeekend*/ );
}
}
else
throw lang::IllegalArgumentException();
}
else
- InsertHolidayList( rAnyConv, rHolAny, nNullDate, bInsertOnWeekend );
+ InsertHolidayList( rAnyConv, rHolAny, nNullDate, false/*bInsertOnWeekend*/ );
}
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index 6e7fca119a19..5ef162dd17e9 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -271,13 +271,12 @@ public:
bool Find( sal_Int32 nVal ) const;
/** @param rAnyConv is an initialized or uninitialized ScaAnyConverter
- @param bInsertOnWeekend insertion mode: false = holidays on weekend are omitted */
+ holidays on weekend are omitted */
void InsertHolidayList(
ScaAnyConverter& rAnyConv,
const css::uno::Reference< css::beans::XPropertySet >& xOptions,
const css::uno::Any& rHolAny,
- sal_Int32 nNullDate,
- bool bInsertOnWeekend ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException );
+ sal_Int32 nNullDate) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException );
};