summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis/analysishelper.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 13:11:40 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 13:11:40 +0000
commitb8437a1823ae81943f564684824fb6256a421dcd (patch)
tree9b67a71fb3d80b82ed626c9936c30d170213bc4d /scaddins/source/analysis/analysishelper.cxx
parentfb4d3c65e96417b3f3ed11cac16406e154c265e9 (diff)
INTEGRATION: CWS ooo20031216 (1.40.42); FILE MERGED
2004/01/09 16:55:33 pjanik 1.40.42.2: #i23939#: Fix compilation on Win32. 2004/01/09 09:17:35 pjanik 1.40.42.1: #i23939#: Do not add L modifier after constants.
Diffstat (limited to 'scaddins/source/analysis/analysishelper.cxx')
-rw-r--r--scaddins/source/analysis/analysishelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 143bd2be43d1..d3c83ee46854 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: analysishelper.cxx,v $
*
- * $Revision: 1.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: vg $ $Date: 2003-06-04 10:31:45 $
+ * last change: $Author: hr $ $Date: 2004-02-04 14:11:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -3007,7 +3007,7 @@ sal_Int32 ScaDate::getDiff( const ScaDate& rFrom, const ScaDate& rTo ) throw( la
}
// finally add remaining days in this month
nDiff += aTo.nDay - aFrom.nDay;
- return Max( nDiff, 0L );
+ return nDiff > 0 ? nDiff : 0;
}
sal_Bool ScaDate::operator<( const ScaDate& rCmp ) const