diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 12:35:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:11:49 +0100 |
commit | dbe880051a3c5946fc6b25f9cc5ae3db9b2be796 (patch) | |
tree | 832351d28d53f09c2cc246416f13d6798cbaae1a /scaddins/source | |
parent | aeae24309fa00f02f03192ce0f21aa38d0d718b2 (diff) |
Be explicit when using bool as integral value
...assuming these functions shall indeed only return 0 or 1.
Change-Id: Ia2071182ade5cdb3c7ea02380285966d6284b6d3
Diffstat (limited to 'scaddins/source')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 27c0fda1fdaa..467b603900ad 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -978,7 +978,7 @@ OUString SAL_CALL AnalysisAddIn::getHex2Oct( const uno::Reference< beans::XPrope sal_Int32 SAL_CALL AnalysisAddIn::getDelta( const uno::Reference< beans::XPropertySet >& xOpt, double fNum1, const uno::Any& rNum2 ) throw( uno::RuntimeException, lang::IllegalArgumentException ) { - return fNum1 == aAnyConv.getDouble( xOpt, rNum2, 0.0 ); + return sal_Int32(fNum1 == aAnyConv.getDouble( xOpt, rNum2, 0.0 )); } @@ -1001,7 +1001,7 @@ double SAL_CALL AnalysisAddIn::getErfc( double f ) throw( uno::RuntimeException, sal_Int32 SAL_CALL AnalysisAddIn::getGestep( const uno::Reference< beans::XPropertySet >& xOpt, double fNum, const uno::Any& rStep ) throw( uno::RuntimeException, lang::IllegalArgumentException ) { - return fNum >= aAnyConv.getDouble( xOpt, rStep, 0.0 ); + return sal_Int32(fNum >= aAnyConv.getDouble( xOpt, rStep, 0.0 )); } |