diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-27 14:26:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-27 16:45:41 +0200 |
commit | 9463550eabd0455c374c1369bc72388108baccad (patch) | |
tree | a2df208a79aec4b4d7cbdff185a3bcfaa952c07e /codemaker/source/cppumaker | |
parent | a3e540304269772595439de22b54269011721bb2 (diff) |
use more string_view in codemaker
Change-Id: If311f5600bd61387cc709065978306c21360dea8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133509
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'codemaker/source/cppumaker')
-rw-r--r-- | codemaker/source/cppumaker/includes.cxx | 2 | ||||
-rw-r--r-- | codemaker/source/cppumaker/includes.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/codemaker/source/cppumaker/includes.cxx b/codemaker/source/cppumaker/includes.cxx index db7dae46bccc..470d59ef3554 100644 --- a/codemaker/source/cppumaker/includes.cxx +++ b/codemaker/source/cppumaker/includes.cxx @@ -68,7 +68,7 @@ Includes::Includes( Includes::~Includes() {} -void Includes::add(OString const & entityName) { +void Includes::add(std::string_view entityName) { sal_Int32 k; std::vector< OString > args; OUString n(b2u(codemaker::UnoType::decompose(entityName, &k, &args))); diff --git a/codemaker/source/cppumaker/includes.hxx b/codemaker/source/cppumaker/includes.hxx index 0362c417ac2a..00c784408077 100644 --- a/codemaker/source/cppumaker/includes.hxx +++ b/codemaker/source/cppumaker/includes.hxx @@ -38,7 +38,7 @@ public: ~Includes(); - void add(OString const & entityName); + void add(std::string_view entityName); void addCassert() { m_includeCassert = true; } void addAny() { m_includeAny = true; } void addReference() { m_includeReference = true; } |