doSubmenu function in menutest.cc avoids copying labelstr by using a const reference.
This commit is contained in:
parent
bf607341da
commit
2275e1e6e4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue