Fix #10891 compiler warnings.

This commit is contained in:
Richard Heck 2017-12-16 00:55:45 -05:00
parent 05c876568a
commit 37f8efe9f7

View File

@ -148,28 +148,28 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex)
case TO_POPUPMENU: case TO_POPUPMENU:
if (lex.next(true)) { if (lex.next(true)) {
string const name = lex.getString(); string const pname = lex.getString();
lex.next(true); lex.next(true);
docstring const label = lex.getDocString(); docstring const label = lex.getDocString();
add(ToolbarItem(ToolbarItem::POPUPMENU, name, label)); add(ToolbarItem(ToolbarItem::POPUPMENU, pname, label));
} }
break; break;
case TO_STICKYPOPUPMENU: case TO_STICKYPOPUPMENU:
if (lex.next(true)) { if (lex.next(true)) {
string const name = lex.getString(); string const pname = lex.getString();
lex.next(true); lex.next(true);
docstring const label = lex.getDocString(); docstring const label = lex.getDocString();
add(ToolbarItem(ToolbarItem::STICKYPOPUPMENU, name, label)); add(ToolbarItem(ToolbarItem::STICKYPOPUPMENU, pname, label));
} }
break; break;
case TO_ICONPALETTE: case TO_ICONPALETTE:
if (lex.next(true)) { if (lex.next(true)) {
string const name = lex.getString(); string const pname = lex.getString();
lex.next(true); lex.next(true);
docstring const label = lex.getDocString(); docstring const label = lex.getDocString();
add(ToolbarItem(ToolbarItem::ICONPALETTE, name, label)); add(ToolbarItem(ToolbarItem::ICONPALETTE, pname, label));
} }
break; break;