summaryrefslogtreecommitdiff
path: root/include/unoidl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-04-21 21:09:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-22 13:27:56 +0200
commit9820f11ad2b1ef32e5527eec519b0a7c766e2602 (patch)
tree2ffa9a42bed16ab9a790d78b8f42a76996fdbe01 /include/unoidl
parente4d1731ba3e8bac2801d1b76cfb66bf7f9795468 (diff)
address review comments on "use more string in unoidl.."
on commit 2d9291b9433c9645b0870525211f74bfb1151555 Author: Noel Grandin <noel.grandin@collabora.co.uk> Date: Thu Apr 21 12:53:15 2022 +0200 use more string_view in unoidl,codemaker Primarily reverting the findEntity call-chain to use OUString instead of std::u16string_view. Change-Id: Ib01b9473c859bba3791563df753823bbf0a87ce0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133302 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unoidl')
-rw-r--r--include/unoidl/unoidl.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/unoidl/unoidl.hxx b/include/unoidl/unoidl.hxx
index 50412d599e84..e2ae024d06f7 100644
--- a/include/unoidl/unoidl.hxx
+++ b/include/unoidl/unoidl.hxx
@@ -675,7 +675,7 @@ public:
virtual rtl::Reference< MapCursor > createRootCursor() const = 0;
// throws FileFormatException:
- virtual rtl::Reference< Entity > findEntity(std::u16string_view name)
+ virtual rtl::Reference< Entity > findEntity(OUString const & name)
const = 0;
protected:
@@ -689,10 +689,10 @@ public:
Manager() {}
// throws FileFormatException, NoSuchFileException:
- rtl::Reference< Provider > addProvider(std::u16string_view uri);
+ rtl::Reference< Provider > addProvider(OUString const & uri);
// throws FileFormatException:
- rtl::Reference< Entity > findEntity(std::u16string_view name) const;
+ rtl::Reference< Entity > findEntity(OUString const & name) const;
// throws FileFormatException:
rtl::Reference< MapCursor > createCursor(OUString const & name) const;
@@ -701,7 +701,7 @@ private:
virtual SAL_DLLPRIVATE ~Manager() noexcept override;
SAL_DLLPRIVATE rtl::Reference< Provider > loadProvider(
- std::u16string_view uri);
+ OUString const & uri);
mutable osl::Mutex mutex_;
std::vector< rtl::Reference< Provider > > providers_;