summaryrefslogtreecommitdiff
path: root/forms/source/xforms/convert.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/xforms/convert.cxx')
-rw-r--r--forms/source/xforms/convert.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx
index 7ea6e35a5284..96919907c4ca 100644
--- a/forms/source/xforms/convert.cxx
+++ b/forms/source/xforms/convert.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -221,18 +221,18 @@ namespace
// ------------------------------------------------------------------------
Any lcl_toAny_bool( const OUString& rStr )
- {
+ {
bool b = ( rStr == OUSTRING("true") || rStr == OUSTRING("1") );
return makeAny( b );
}
// ------------------------------------------------------------------------
OUString lcl_toXSD_double( const Any& rAny )
- {
+ {
double f = 0.0;
rAny >>= f;
- return rtl::math::isFinite( f )
+ return rtl::math::isFinite( f )
? rtl::math::doubleToUString( f, rtl_math_StringFormat_Automatic,
rtl_math_DecimalPlaces_Max, '.',
sal_True )
@@ -241,9 +241,9 @@ namespace
// ------------------------------------------------------------------------
Any lcl_toAny_double( const OUString& rString )
- {
+ {
rtl_math_ConversionStatus eStatus;
- double f = rtl::math::stringToDouble(
+ double f = rtl::math::stringToDouble(
rString, sal_Unicode('.'), sal_Unicode(','), &eStatus, NULL );
return ( eStatus == rtl_math_ConversionStatus_Ok ) ? makeAny( f ) : Any();
}
@@ -548,7 +548,7 @@ rtl::OUString Convert::toXSD( const Any_t& rAny )
return aIter != maMap.end() ? aIter->second.first( rAny ) : OUString();
}
-Convert::Any_t Convert::toAny( const rtl::OUString& rValue,
+Convert::Any_t Convert::toAny( const rtl::OUString& rValue,
const Type_t& rType )
{
Map_t::iterator aIter = maMap.find( rType );