aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2014-12-20 03:54:39 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-05-01 08:46:21 (GMT)
commit2275e1e6e4571a902138afb60ed0db6396297c1a (patch)
tree995b488fcf216ffb53fd47805e756a7b955b3ca7 /src/tests
parentbf607341da16cb86243e574c955fc593fe60031f (diff)
downloadfluxbox-2275e1e6e4571a902138afb60ed0db6396297c1a.zip
fluxbox-2275e1e6e4571a902138afb60ed0db6396297c1a.tar.bz2
doSubmenu function in menutest.cc avoids copying labelstr by using a const reference.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/menutest.cc2
1 files changed, 1 insertions, 1 deletions
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;
44void doSubmenu(Parser &parser, FbTk::Menu &menu, 44void doSubmenu(Parser &parser, FbTk::Menu &menu,
45 FbTk::MenuTheme &theme, 45 FbTk::MenuTheme &theme,
46 FbTk::ImageControl &image_ctrl, 46 FbTk::ImageControl &image_ctrl,
47 const std::string labelstr) { 47 const std::string &labelstr) {
48 48
49 Parser::Item key, label, cmd, icon; 49 Parser::Item key, label, cmd, icon;
50 50