summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysishelper.hxx2
-rw-r--r--scaddins/source/datefunc/datefunc.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index 929d5f51ecb0..bdc3e6d7e977 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -603,7 +603,7 @@ public:
inline sal_Bool IsLeapYear( sal_uInt16 n )
{
- return ( ( ( n % 4 ) == 0 ) && ( ( n % 100 ) != 0) || ( ( n % 400 ) == 0 ) );
+ return ( (( ( n % 4 ) == 0 ) && ( ( n % 100 ) != 0)) || ( ( n % 400 ) == 0 ) );
}
diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index 500196cb6129..c2ef7343788e 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -603,7 +603,7 @@ uno::Sequence< sheet::LocalizedName > SAL_CALL ScaDateAddIn::getCompatibilityNam
sal_Bool IsLeapYear( sal_uInt16 nYear )
{
- return (((nYear % 4) == 0) && ((nYear % 100) != 0) || ((nYear % 400) == 0));
+ return ((((nYear % 4) == 0) && ((nYear % 100) != 0)) || ((nYear % 400) == 0));
}
sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear )