diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-27 18:08:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-28 15:41:02 +0200 |
commit | 39c3574b799690d4405d9318a5ba221b5feaccbe (patch) | |
tree | 40cacd124e11dd71b23affec3713c6f0fef27906 /basctl | |
parent | 9658115370bf33c2fdb68a3b759cf2f9d9e7c6c1 (diff) |
use string_view in INetURLObject::encode
Change-Id: Ib686c6872388b02c8939d3b65f6bd25cda348bc8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114754
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index e04558a42e7f..cd6587dc800d 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1038,7 +1038,7 @@ void LibPage::ExportAsPackage( const OUString& aLibName ) Sequence< OUString > aFiles = xFP->getSelectedFiles(); INetURLObject aURL( aFiles[0] ); if( aURL.getExtension().isEmpty() ) - aURL.setExtension( "oxt" ); + aURL.setExtension( u"oxt" ); OUString aPackageURL( aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ) ); @@ -1071,7 +1071,7 @@ void LibPage::ExportAsPackage( const OUString& aLibName ) OUString(), NameClash::OVERWRITE ); INetURLObject aMetaInfInetObj( aTmpPath ); - aMetaInfInetObj.insertName( "META-INF", + aMetaInfInetObj.insertName( u"META-INF", true, INetURLObject::LAST_SEGMENT, INetURLObject::EncodeMechanism::All ); OUString aMetaInfFolder = aMetaInfInetObj.GetMainURL( INetURLObject::DecodeMechanism::NONE ); if( xSFA->exists( aMetaInfFolder ) ) @@ -1095,7 +1095,7 @@ void LibPage::ExportAsPackage( const OUString& aLibName ) xPipe, Sequence< Sequence<beans::PropertyValue> >( manifest.data(), manifest.size() ) ); - aMetaInfInetObj.insertName( "manifest.xml", + aMetaInfInetObj.insertName( u"manifest.xml", true, INetURLObject::LAST_SEGMENT, INetURLObject::EncodeMechanism::All ); // write buffered pipe data to content: |