mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
Fix #10891 compiler warnings.
This commit is contained in:
parent
05c876568a
commit
37f8efe9f7
@ -148,28 +148,28 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex)
|
||||
|
||||
case TO_POPUPMENU:
|
||||
if (lex.next(true)) {
|
||||
string const name = lex.getString();
|
||||
string const pname = lex.getString();
|
||||
lex.next(true);
|
||||
docstring const label = lex.getDocString();
|
||||
add(ToolbarItem(ToolbarItem::POPUPMENU, name, label));
|
||||
add(ToolbarItem(ToolbarItem::POPUPMENU, pname, label));
|
||||
}
|
||||
break;
|
||||
|
||||
case TO_STICKYPOPUPMENU:
|
||||
if (lex.next(true)) {
|
||||
string const name = lex.getString();
|
||||
string const pname = lex.getString();
|
||||
lex.next(true);
|
||||
docstring const label = lex.getDocString();
|
||||
add(ToolbarItem(ToolbarItem::STICKYPOPUPMENU, name, label));
|
||||
add(ToolbarItem(ToolbarItem::STICKYPOPUPMENU, pname, label));
|
||||
}
|
||||
break;
|
||||
|
||||
case TO_ICONPALETTE:
|
||||
if (lex.next(true)) {
|
||||
string const name = lex.getString();
|
||||
string const pname = lex.getString();
|
||||
lex.next(true);
|
||||
docstring const label = lex.getDocString();
|
||||
add(ToolbarItem(ToolbarItem::ICONPALETTE, name, label));
|
||||
add(ToolbarItem(ToolbarItem::ICONPALETTE, pname, label));
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user