diff options
author | Mario J. Rugiero <mrugiero@gmail.com> | 2014-12-20 03:50:04 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-05-01 08:46:20 (GMT) |
commit | 63f89cb4336a7232de84a6c0999833267d732175 (patch) | |
tree | 570bf2bcb842140125e893507f514e9dc2bcff86 /src/CommandDialog.cc | |
parent | 79a358346a650a40c0e0f0409b264bf3e3cb23a4 (diff) | |
download | fluxbox-63f89cb4336a7232de84a6c0999833267d732175.zip fluxbox-63f89cb4336a7232de84a6c0999833267d732175.tar.bz2 |
Pass pre_command to CommandDialog as const reference to avoid unnecessary copying.
Diffstat (limited to 'src/CommandDialog.cc')
-rw-r--r-- | src/CommandDialog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CommandDialog.cc b/src/CommandDialog.cc index 023c22f..e777390 100644 --- a/src/CommandDialog.cc +++ b/src/CommandDialog.cc | |||
@@ -40,7 +40,7 @@ using std::less; | |||
40 | using std::out_of_range; | 40 | using std::out_of_range; |
41 | 41 | ||
42 | CommandDialog::CommandDialog(BScreen &screen, const string &title, | 42 | CommandDialog::CommandDialog(BScreen &screen, const string &title, |
43 | const string precommand) : | 43 | const string &precommand) : |
44 | TextDialog(screen, title), | 44 | TextDialog(screen, title), |
45 | m_precommand(precommand) { } | 45 | m_precommand(precommand) { } |
46 | 46 | ||