diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-28 17:56:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 16:42:33 +0100 |
commit | 042033f1e6da22616cb76c8d950c20c9efecbad5 (patch) | |
tree | 26b3f1f42d067506f44550b410f3fb9640616a5b /writerperfect/source | |
parent | ccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff) |
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'writerperfect/source')
-rw-r--r-- | writerperfect/source/common/WPXSvInputStream.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index 2af8475ee99e..9f7ea9caecf1 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -87,11 +87,11 @@ OUString lcl_normalizeSubStreamPath(const OUString& rPath) namespace { -OUString concatPath(const OUString& lhs, const OUString& rhs) +OUString concatPath(std::u16string_view lhs, const OUString& rhs) { - if (lhs.isEmpty()) + if (lhs.empty()) return rhs; - return lhs + "/" + rhs; + return OUString::Concat(lhs) + "/" + rhs; } struct OLEStreamData @@ -143,7 +143,7 @@ struct OLEStorageImpl tools::SvRef<SotStorageStream> const& getStream(std::size_t nId); private: - void traverse(const tools::SvRef<SotStorage>& rStorage, const OUString& rPath); + void traverse(const tools::SvRef<SotStorage>& rStorage, std::u16string_view rPath); tools::SvRef<SotStorageStream> createStream(const OUString& rPath); @@ -178,7 +178,7 @@ void OLEStorageImpl::initialize(std::unique_ptr<SvStream> pStream) mxRootStorage = new SotStorage(pStream.release(), true); - traverse(mxRootStorage, ""); + traverse(mxRootStorage, u""); mbInitialized = true; } @@ -210,7 +210,7 @@ tools::SvRef<SotStorageStream> const& OLEStorageImpl::getStream(const std::size_ return maStreams[nId].stream; } -void OLEStorageImpl::traverse(const tools::SvRef<SotStorage>& rStorage, const OUString& rPath) +void OLEStorageImpl::traverse(const tools::SvRef<SotStorage>& rStorage, std::u16string_view rPath) { SvStorageInfoList infos; |