summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 17:52:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 18:26:53 +0200
commitb7f688f7ab4f79b6c2092f8756e66eb8219f88e4 (patch)
tree1a680fd860bced54690d393336a315b1f838114a /xmloff
parent0a4495f8bde3a30638baefd9506688f42d137997 (diff)
loplugin:salunicodeliteral: xmloff
Change-Id: I751006fd054882a9ceab424675ac0505a9ddfd8b
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLParagraphContext.cxx4
-rw-r--r--xmloff/source/draw/animationexport.cxx2
-rw-r--r--xmloff/source/text/XMLStringBufferImportContext.cxx2
-rw-r--r--xmloff/source/text/txtimp.cxx2
-rw-r--r--xmloff/source/text/txtparae.cxx2
-rw-r--r--xmloff/source/xforms/TokenContext.cxx6
6 files changed, 9 insertions, 9 deletions
diff --git a/xmloff/source/chart/SchXMLParagraphContext.cxx b/xmloff/source/chart/SchXMLParagraphContext.cxx
index ba8a254266f0..6637254f6a7b 100644
--- a/xmloff/source/chart/SchXMLParagraphContext.cxx
+++ b/xmloff/source/chart/SchXMLParagraphContext.cxx
@@ -89,11 +89,11 @@ SvXMLImportContext* SchXMLParagraphContext::CreateChildContext(
{
if( rLocalName.equals( ::xmloff::token::GetXMLToken( ::xmloff::token::XML_TAB_STOP )))
{
- maBuffer.append( sal_Unicode( 0x0009 )); // tabulator
+ maBuffer.append( u'\x0009'); // tabulator
}
else if( rLocalName.equals( ::xmloff::token::GetXMLToken( ::xmloff::token::XML_LINE_BREAK )))
{
- maBuffer.append( sal_Unicode( 0x000A )); // linefeed
+ maBuffer.append( u'\x000A'); // linefeed
}
}
diff --git a/xmloff/source/draw/animationexport.cxx b/xmloff/source/draw/animationexport.cxx
index db2720ffd8eb..b56bf8305613 100644
--- a/xmloff/source/draw/animationexport.cxx
+++ b/xmloff/source/draw/animationexport.cxx
@@ -483,7 +483,7 @@ AnimationsExporterImpl::AnimationsExporterImpl( SvXMLExport& rExport, const Refe
static bool splitPath(::rtl::OUString const & i_rPath,
::rtl::OUString & o_rDir, ::rtl::OUString& o_rRest)
{
- const sal_Int32 idx(i_rPath.indexOf(static_cast<sal_Unicode>('/')));
+ const sal_Int32 idx(i_rPath.indexOf(u'/'));
if (idx < 0 || idx >= i_rPath.getLength()) {
o_rDir = ::rtl::OUString();
o_rRest = i_rPath;
diff --git a/xmloff/source/text/XMLStringBufferImportContext.cxx b/xmloff/source/text/XMLStringBufferImportContext.cxx
index 176ffaddf49d..add109644693 100644
--- a/xmloff/source/text/XMLStringBufferImportContext.cxx
+++ b/xmloff/source/text/XMLStringBufferImportContext.cxx
@@ -64,7 +64,7 @@ void XMLStringBufferImportContext::EndElement()
XML_NAMESPACE_LO_EXT == GetPrefix()) &&
(IsXMLToken(GetLocalName(), XML_P)) )
{
- rTextBuffer.append(sal_Unicode(0x0a));
+ rTextBuffer.append(u'\x000a');
}
}
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index 2bd3cace328f..5646ce4192ab 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -1139,7 +1139,7 @@ void XMLTextImportHelper::InsertString( const OUString& rChars,
case 0x0a:
case 0x0d:
if( !rIgnoreLeadingSpace )
- sChars.append( (sal_Unicode)0x20 );
+ sChars.append( u' ' );
rIgnoreLeadingSpace = true;
break;
default:
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index eff5a4e74587..1f583813336a 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -1254,7 +1254,7 @@ XMLTextParagraphExport::XMLTextParagraphExport(
GetExport() );
OUString sFamily( GetXMLToken(XML_PARAGRAPH) );
- OUString aPrefix(static_cast<sal_Unicode>('P'));
+ OUString aPrefix(u'P');
rAutoStylePool.AddFamily( XML_STYLE_FAMILY_TEXT_PARAGRAPH, sFamily,
xParaPropMapper, aPrefix );
diff --git a/xmloff/source/xforms/TokenContext.cxx b/xmloff/source/xforms/TokenContext.cxx
index 3aefb3a89f1a..315bccf5ccff 100644
--- a/xmloff/source/xforms/TokenContext.cxx
+++ b/xmloff/source/xforms/TokenContext.cxx
@@ -115,9 +115,9 @@ SvXMLImportContext* TokenContext::CreateChildContext(
static bool lcl_IsWhiteSpace( sal_Unicode c )
{
return c == ' '
- || c == sal_Unicode( 0x09 )
- || c == sal_Unicode( 0x0A )
- || c == sal_Unicode( 0x0D );
+ || c == u'\x0009'
+ || c == u'\x000A'
+ || c == u'\x000D';
}
void TokenContext::Characters( const OUString& rCharacters )