[Libreoffice-commits] .: sal/inc

Caolán McNamara caolan at kemper.freedesktop.org
Wed Jun 22 01:27:09 PDT 2011


 sal/inc/rtl/math.hxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit c791eff9e47023d5f3919969722cd1db6fec4243
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 21 23:18:41 2011 +0100

    add default arguments to make this less painful

diff --git a/sal/inc/rtl/math.hxx b/sal/inc/rtl/math.hxx
index f7ef3b5..82fab5b 100644
--- a/sal/inc/rtl/math.hxx
+++ b/sal/inc/rtl/math.hxx
@@ -142,8 +142,8 @@ inline void doubleToUStringBuffer( rtl::OUStringBuffer& rBuffer, double fValue,
  */
 inline double stringToDouble(rtl::OString const & rString,
                              sal_Char cDecSeparator, sal_Char cGroupSeparator,
-                             rtl_math_ConversionStatus * pStatus,
-                             sal_Int32 * pParsedEnd)
+                             rtl_math_ConversionStatus * pStatus = 0,
+                             sal_Int32 * pParsedEnd = 0)
 {
     sal_Char const * pBegin = rString.getStr();
     sal_Char const * pEnd;
@@ -161,8 +161,8 @@ inline double stringToDouble(rtl::OString const & rString,
 inline double stringToDouble(rtl::OUString const & rString,
                              sal_Unicode cDecSeparator,
                              sal_Unicode cGroupSeparator,
-                             rtl_math_ConversionStatus * pStatus,
-                             sal_Int32 * pParsedEnd)
+                             rtl_math_ConversionStatus * pStatus = 0,
+                             sal_Int32 * pParsedEnd = 0)
 {
     sal_Unicode const * pBegin = rString.getStr();
     sal_Unicode const * pEnd;


More information about the Libreoffice-commits mailing list