diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-14 14:56:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-07-25 13:29:11 +0200 |
commit | 1bbcc3fdf312971ffb681b332f47369739d95dde (patch) | |
tree | 649e44c2e46b2c16973333300103cd152b9523ac /basic | |
parent | b84ef4d67eaf9f9fd7fd700ca05339cb0cdff742 (diff) |
O[U]String overloads that return view for rest parameter
Add new overloads to OUString methods that have a
"OUString* rest" style parameter.
Instead return a view, which does not require allocation.
To avoid overload ambiguity, split the methods into
different variants that do not use default parameters.
Change-Id: I1aa366115750f1f7ea4fe665804195f59f7c4b69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167632
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/namecont.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 3646fd140ceb..0edefa1676aa 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -1279,7 +1279,7 @@ void SfxLibraryContainer::checkStorageURL( const OUString& aSourceURL, else { // try to re-create the variable URL: helps moving the profile - if (OUString aRest; aSourceURL.startsWith(expand_url(sUserBasicVariablePrefix), &aRest)) + if (std::u16string_view aRest; aSourceURL.startsWith(expand_url(sUserBasicVariablePrefix), &aRest)) aUnexpandedStorageURL = sUserBasicVariablePrefix + aRest; else if (aSourceURL.startsWith(expand_url(sInstBasicVariablePrefix), &aRest)) aUnexpandedStorageURL = sInstBasicVariablePrefix + aRest; |