From 2275e1e6e4571a902138afb60ed0db6396297c1a Mon Sep 17 00:00:00 2001 From: "Mario J. Rugiero" Date: Sat, 20 Dec 2014 00:54:39 -0300 Subject: doSubmenu function in menutest.cc avoids copying labelstr by using a const reference. --- src/tests/menutest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/menutest.cc b/src/tests/menutest.cc index 0008ff0..6a8bd43 100644 --- a/src/tests/menutest.cc +++ b/src/tests/menutest.cc @@ -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; -- cgit v0.11.2