diff options
author | Mario J. Rugiero <mrugiero@gmail.com> | 2014-12-20 03:54:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-05-01 08:46:21 (GMT) |
commit | 2275e1e6e4571a902138afb60ed0db6396297c1a (patch) | |
tree | 995b488fcf216ffb53fd47805e756a7b955b3ca7 | |
parent | bf607341da16cb86243e574c955fc593fe60031f (diff) | |
download | fluxbox-2275e1e6e4571a902138afb60ed0db6396297c1a.zip fluxbox-2275e1e6e4571a902138afb60ed0db6396297c1a.tar.bz2 |
doSubmenu function in menutest.cc avoids copying labelstr by using a const reference.
-rw-r--r-- | src/tests/menutest.cc | 2 |
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; | |||
44 | void doSubmenu(Parser &parser, FbTk::Menu &menu, | 44 | void 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 | ||