Const ref instead of const for string vector.
Gregor Bollerhey gbsoftware@arcor.de
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/SystemTray.cc
→
src/SystemTray.cc
@@ -91,7 +91,7 @@ TrayWindow(Window win, bool using_xembed):FbTk::FbWindow(win), m_order(0), m_visible(false), m_xembedded(using_xembed) {
setEventMask(PropertyChangeMask); } - void pinByClassname(const std::vector<std::string> left, const std::vector<std::string> right); + void pinByClassname(const std::vector<std::string> &left, const std::vector<std::string> &right); bool isVisible() { return m_visible; } bool isXEmbedded() { return m_xembedded; }@@ -135,8 +135,8 @@ bool m_visible;
bool m_xembedded; // using xembed protocol? (i.e. unmap when done) }; -void TrayWindow::pinByClassname(const std::vector<std::string> left, - const std::vector<std::string> right) { +void TrayWindow::pinByClassname(const std::vector<std::string> &left, + const std::vector<std::string> &right) { // based on the parsed order list and a given window sets m_order to // an ordinal used to sort the tray icons.