diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-13 12:10:31 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2013-11-14 06:16:12 +0000 |
commit | 39c8da8c86decbe3443a786ad445a18b0078daa3 (patch) | |
tree | 6a94899b413111ddf497885b17bb8df751a0d9f6 /xmloff/source/xforms | |
parent | f50699c816de8e4be3433c6387e37d92aedd41a0 (diff) |
remove unnecessary sal_Unicode casts in XMLOFF module
Change-Id: I836c7a28d5ec9039c0b185e8db2aa6d01ac62566
Reviewed-on: https://gerrit.libreoffice.org/6665
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r-- | xmloff/source/xforms/SchemaRestrictionContext.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/xforms/TokenContext.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.cxx b/xmloff/source/xforms/SchemaRestrictionContext.cxx index c7c200bc5815..78aecb4c128e 100644 --- a/xmloff/source/xforms/SchemaRestrictionContext.cxx +++ b/xmloff/source/xforms/SchemaRestrictionContext.cxx @@ -182,8 +182,8 @@ Any xforms_date( const OUString& rValue ) Any aAny; // parse ISO date - sal_Int32 nPos1 = rValue.indexOf( sal_Unicode('-') ); - sal_Int32 nPos2 = rValue.indexOf( sal_Unicode('-'), nPos1 + 1 ); + sal_Int32 nPos1 = rValue.indexOf( '-' ); + sal_Int32 nPos2 = rValue.indexOf( '-', nPos1 + 1 ); if( nPos1 > 0 && nPos2 > 0 ) { util::Date aDate; diff --git a/xmloff/source/xforms/TokenContext.cxx b/xmloff/source/xforms/TokenContext.cxx index 540d016e0635..c76fae21deab 100644 --- a/xmloff/source/xforms/TokenContext.cxx +++ b/xmloff/source/xforms/TokenContext.cxx @@ -117,7 +117,7 @@ SvXMLImportContext* TokenContext::CreateChildContext( static bool lcl_IsWhiteSpace( sal_Unicode c ) { - return c == sal_Unicode( ' ' ) + return c == ' ' || c == sal_Unicode( 0x09 ) || c == sal_Unicode( 0x0A ) || c == sal_Unicode( 0x0D ); |