From da56de9ac4824eb365af20b351719395e725be39 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Thu, 30 Mar 2017 09:36:06 +0200 Subject: remove type decorations on char literals they are only needed where type deduction fails. left them in defines for now. Change-Id: I7f002dd6bc7acc083c73b6c64076de6dd28d0b09 Reviewed-on: https://gerrit.libreoffice.org/35893 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmlscript/source/xml_helper/xml_impctx.cxx | 6 +++--- xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xmlscript/source') diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 5ac08317b70f..5b3f8ae1156a 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -305,7 +305,7 @@ inline void DocumentHandlerImpl::popPrefix( inline void DocumentHandlerImpl::getElementName( OUString const & rQName, sal_Int32 * pUid, OUString * pLocalName ) { - sal_Int32 nColonPos = rQName.indexOf( (sal_Unicode)':' ); + sal_Int32 nColonPos = rQName.indexOf( ':' ); *pLocalName = (nColonPos >= 0 ? rQName.copy( nColonPos +1 ) : rQName); *pUid = getUidByPrefix( nColonPos >= 0 ? rQName.copy( 0, nColonPos ) : OUString() ); @@ -495,7 +495,7 @@ void DocumentHandlerImpl::startElement( pPrefixes[ nPos ] = m_sXMLNS; pLocalNames[ nPos ] = aDefNamespacePrefix; } - else if ((sal_Unicode)':' == rQAttributeName[ 5 ]) // set prefix + else if (':' == rQAttributeName[ 5 ]) // set prefix { OUString aPrefix( rQAttributeName.copy( 6 ) ); pushPrefix( aPrefix, xAttribs->getValueByIndex( nPos ) ); @@ -517,7 +517,7 @@ void DocumentHandlerImpl::startElement( SAL_WARN_IF(rQAttributeName.startsWith( "xmlns:" ), "xmlscript.xmlhelper", "### unexpected xmlns!" ); // collect attribute's uid and current prefix - sal_Int32 nColonPos = rQAttributeName.indexOf( (sal_Unicode) ':' ); + sal_Int32 nColonPos = rQAttributeName.indexOf( ':' ); if (nColonPos >= 0) { pPrefixes[ nPos ] = rQAttributeName.copy( 0, nColonPos ); diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx index 5ed18a517253..f88f86119ff1 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx @@ -1199,7 +1199,7 @@ void ElementDescriptor::readEvents() if ( descr.ScriptType == "StarBasic" ) { // separate optional location - sal_Int32 nIndex = descr.ScriptCode.indexOf( (sal_Unicode)':' ); + sal_Int32 nIndex = descr.ScriptCode.indexOf( ':' ); if (nIndex >= 0) { pElem->addAttribute( XMLNS_SCRIPT_PREFIX ":location", descr.ScriptCode.copy( 0, nIndex ) ); -- cgit