diff options
Diffstat (limited to 'xmloff/source/xforms/SchemaRestrictionContext.cxx')
-rw-r--r-- | xmloff/source/xforms/SchemaRestrictionContext.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.cxx b/xmloff/source/xforms/SchemaRestrictionContext.cxx index c1720b1f5c60..fcf58ce5eb2f 100644 --- a/xmloff/source/xforms/SchemaRestrictionContext.cxx +++ b/xmloff/source/xforms/SchemaRestrictionContext.cxx @@ -132,26 +132,26 @@ void SchemaRestrictionContext::HandleAttribute( typedef Any (*convert_t)( const OUString& ); -Any xforms_string( const OUString& rValue ) +static Any xforms_string( const OUString& rValue ) { return makeAny( rValue ); } -Any xforms_int32( const OUString& rValue ) +static Any xforms_int32( const OUString& rValue ) { sal_Int32 nValue; bool bSuccess = ::sax::Converter::convertNumber( nValue, rValue ); return bSuccess ? makeAny( nValue ) : Any(); } -Any xforms_int16( const OUString& rValue ) +static Any xforms_int16( const OUString& rValue ) { sal_Int32 nValue; bool bSuccess = ::sax::Converter::convertNumber( nValue, rValue ); return bSuccess ? makeAny( static_cast<sal_Int16>( nValue ) ) : Any(); } -Any xforms_whitespace( const OUString& rValue ) +static Any xforms_whitespace( const OUString& rValue ) { Any aValue; if( IsXMLToken( rValue, XML_PRESERVE ) ) @@ -163,14 +163,14 @@ Any xforms_whitespace( const OUString& rValue ) return aValue; } -Any xforms_double( const OUString& rValue ) +static Any xforms_double( const OUString& rValue ) { double fValue; bool bSuccess = ::sax::Converter::convertDouble( fValue, rValue ); return bSuccess ? makeAny( fValue ) : Any(); } -Any xforms_date( const OUString& rValue ) +static Any xforms_date( const OUString& rValue ) { Any aAny; @@ -191,14 +191,14 @@ Any xforms_date( const OUString& rValue ) return aAny; } -Any xforms_dateTime( const OUString& rValue ) +static Any xforms_dateTime( const OUString& rValue ) { util::DateTime aDateTime; bool const bSuccess = ::sax::Converter::parseDateTime(aDateTime, rValue); return bSuccess ? makeAny( aDateTime ) : Any(); } -Any xforms_time( const OUString& rValue ) +static Any xforms_time( const OUString& rValue ) { Any aAny; Duration aDuration; |