X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FMenuBackend.C;h=de6b67c0a181569acd798a36a52a345f21266430;hb=34d28f9daae536db06d6cf1a9dcf62dc0f5aa432;hp=b11f0a7a9145e27538c339b46afd459cdd1e380e;hpb=ea05b4234c3883b69ed001ae5249d7fd5d98b4be;p=lyx.git diff --git a/src/MenuBackend.C b/src/MenuBackend.C index b11f0a7a91..de6b67c0a1 100644 --- a/src/MenuBackend.C +++ b/src/MenuBackend.C @@ -79,11 +79,13 @@ MenuItem::MenuItem(Kind kind, string const & label, } } + string const MenuItem::label() const { return token(label_, '|', 0); } + string const MenuItem::shortcut() const { return token(label_, '|', 1); @@ -246,6 +248,7 @@ void Menu::checkShortcuts() const } } + namespace { class compare_format {