diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 17:53:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 18:26:54 +0200 |
commit | f76633138d0b9b744fd4e551c571edd8971eb0ac (patch) | |
tree | aaebf522d8e7a500bcd78c8256db7fb080a14543 /unotools | |
parent | ef2c0e73630d3c74f6fc3eda8416488356ff1b7d (diff) |
loplugin:salunicodeliteral: unotools
Change-Id: I187ff986a4a6bd494629b903a409305fe7bf28db
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configpaths.cxx | 6 | ||||
-rw-r--r-- | unotools/source/misc/datetime.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/config/configpaths.cxx b/unotools/source/config/configpaths.cxx index 5739fadac203..ca3c2b94b9a9 100644 --- a/unotools/source/config/configpaths.cxx +++ b/unotools/source/config/configpaths.cxx @@ -250,9 +250,9 @@ OUString lcl_wrapName(const OUString& _sContent, const OUString& _sType) // append (escape if needed) switch(*pCur) { - case sal_Unicode('&') : aNormalized.append( "&" ); break; - case sal_Unicode('\''): aNormalized.append( "'" ); break; - case sal_Unicode('\"'): aNormalized.append( """ ); break; + case u'&' : aNormalized.append( "&" ); break; + case u'\'': aNormalized.append( "'" ); break; + case u'\"': aNormalized.append( """ ); break; default: aNormalized.append( *pCur ); } diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx index b3623ccfffe5..25c4d5ab079b 100644 --- a/unotools/source/misc/datetime.cxx +++ b/unotools/source/misc/datetime.cxx @@ -56,7 +56,7 @@ namespace { // TODO: check overflow! rValue *= 10; - rValue += (rString[nPos] - sal_Unicode('0')); + rValue += (rString[nPos] - u'0'); nPos++; } |