diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 17:55:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 18:26:57 +0200 |
commit | 7e6aa4e2f8aef4c62b22d45f9447796f540b603a (patch) | |
tree | bd4e13ef06e6e5e7c99386d916f60d152f03bd1b /package/source | |
parent | c741633310db3e32e9e07c8e045d11b29f2db606 (diff) |
loplugin:salunicodeliteral: package
Change-Id: I5910fdc2ee54fab9105a8e5ffeb3a7575227c13f
Diffstat (limited to 'package/source')
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index 891d252c6591..cb87074658be 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -1492,7 +1492,7 @@ void SAL_CALL ZipPackage::commitChanges() { uno::Reference < XPropertySet > xPropSet ( xTempInStream, UNO_QUERY_THROW ); - OUString sTargetFolder = m_aURL.copy ( 0, m_aURL.lastIndexOf ( static_cast < sal_Unicode > ( '/' ) ) ); + OUString sTargetFolder = m_aURL.copy ( 0, m_aURL.lastIndexOf ( u'/' ) ); Content aContent( sTargetFolder, uno::Reference< XCommandEnvironment >(), m_xContext ); @@ -1505,7 +1505,7 @@ void SAL_CALL ZipPackage::commitChanges() aInfo.NameClash = NameClash::OVERWRITE; aInfo.MoveData = false; aInfo.SourceURL = sTempURL; - aInfo.NewTitle = rtl::Uri::decode ( m_aURL.copy ( 1 + m_aURL.lastIndexOf ( static_cast < sal_Unicode > ( '/' ) ) ), + aInfo.NewTitle = rtl::Uri::decode ( m_aURL.copy ( 1 + m_aURL.lastIndexOf ( u'/' ) ), rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8 ); // if the file is still not corrupted, it can become after the next step |