diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-15 12:25:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-19 18:31:10 +0200 |
commit | ab699bfdb3375f7142a50cc35322e2924c9e5945 (patch) | |
tree | 8f935378a1ee272f4316a50f902e214d50ce8cc6 /sfx2/source/sidebar | |
parent | f393785a146433cccd5bbecf1e49b5f1485ec5a7 (diff) |
new loplugin:stringviewvar looks for OUString vars that can be
... that can be string_view
Change-Id: I0ddf66725e08b58e866a764f57200dd188b9f639
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133066
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r-- | sfx2/source/sidebar/ResourceManager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx index 56700a223fbb..320faf48fe5e 100644 --- a/sfx2/source/sidebar/ResourceManager.cxx +++ b/sfx2/source/sidebar/ResourceManager.cxx @@ -520,7 +520,7 @@ void ResourceManager::ReadContextList ( continue; } - const OUString sInitialState(o3tl::trim(o3tl::getToken(sValue, 0, ',', nCharacterIndex))); + const std::u16string_view sInitialState(o3tl::trim(o3tl::getToken(sValue, 0, ',', nCharacterIndex))); // The fourth argument is optional. const OUString sMenuCommandOverride( @@ -599,9 +599,9 @@ void ResourceManager::ReadContextList ( // Setup the flag that controls whether a deck/pane is // initially visible/expanded. bool bIsInitiallyVisible; - if (sInitialState == "visible") + if (sInitialState == u"visible") bIsInitiallyVisible = true; - else if (sInitialState == "hidden") + else if (sInitialState == u"hidden") bIsInitiallyVisible = false; else { |