summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-12 16:29:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-04-12 20:52:15 +0200
commite21fa6a5fdca05c49b4fcb9961690cfb6e240909 (patch)
tree5fcbcc6a6b05c3f01b71e608f2b765e1a9e35725
parent77bc0bcfb610b77a9191af2343f64eae36073540 (diff)
[loplugin:stringview] pass a 'std::string_view'
Change-Id: If2e355729f051cd5be517fb05e8909844a24c7f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132927 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 6941df209dae..a3449e02c3cb 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -5213,7 +5213,7 @@ public:
char *id;
if (g_menu_model_get_item_attribute(pMenuModel, i, "action", "s", &id))
{
- assert(OString(id).startsWith("menu."));
+ assert(o3tl::starts_with(id, "menu."));
sAction = OString(id + 5);