diff options
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r-- | xmloff/source/xforms/SchemaRestrictionContext.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.cxx b/xmloff/source/xforms/SchemaRestrictionContext.cxx index ea6db4f1befb..68da0bdd95c9 100644 --- a/xmloff/source/xforms/SchemaRestrictionContext.cxx +++ b/xmloff/source/xforms/SchemaRestrictionContext.cxx @@ -38,6 +38,7 @@ #include <com/sun/star/xsd/DataTypeClass.hpp> #include <com/sun/star/xsd/WhiteSpaceTreatment.hpp> +#include <comphelper/string.hxx> #include <sal/log.hxx> #include <tools/diagnose_ex.h> @@ -150,11 +151,11 @@ static Any xforms_date( const OUString& rValue ) { util::Date aDate; aDate.Year = static_cast<sal_uInt16>( - rValue.copy( 0, nPos1 ).toInt32() ); + comphelper::string::toInt32(rValue.subView( 0, nPos1 )) ); aDate.Month = static_cast<sal_uInt16>( - rValue.copy( nPos1 + 1, nPos2 - nPos1 - 1 ).toInt32() ); + comphelper::string::toInt32(rValue.subView( nPos1 + 1, nPos2 - nPos1 - 1 )) ); aDate.Day = static_cast<sal_uInt16>( - rValue.copy( nPos2 + 1 ).toInt32() ); + comphelper::string::toInt32(rValue.subView( nPos2 + 1 )) ); aAny <<= aDate; } return aAny; |