From b8437a1823ae81943f564684824fb6256a421dcd Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Wed, 4 Feb 2004 13:11:40 +0000 Subject: 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. --- scaddins/source/analysis/analysishelper.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scaddins/source/analysis/analysishelper.cxx') 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 -- cgit