vcl/unx/gtk3/gtkinst.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e21fa6a5fdca05c49b4fcb9961690cfb6e240909
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Apr 12 16:29:30 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Apr 12 20:52:15 2022 +0200

    [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 <caol...@redhat.com>

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);
 

Reply via email to