summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xml_helper/xml_impctx.cxx6
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx2
2 files changed, 4 insertions, 4 deletions
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 ) );