doSubmenu function in menutest.cc avoids copying labelstr by using a const reference.

This commit is contained in:
Mario J. Rugiero 2014-12-20 00:54:39 -03:00 committed by Mathias Gumz
parent bf607341da
commit 2275e1e6e4

View file

@ -44,7 +44,7 @@ using namespace std;
void doSubmenu(Parser &parser, FbTk::Menu &menu,
FbTk::MenuTheme &theme,
FbTk::ImageControl &image_ctrl,
const std::string labelstr) {
const std::string &labelstr) {
Parser::Item key, label, cmd, icon;