From d5902f178546dcbe6d5e91f11a2a5dbb1a3a9078 Mon Sep 17 00:00:00 2001 From: Gregor Bollerhey Date: Sat, 18 Jan 2014 07:25:53 +0100 Subject: [PATCH] Const ref instead of const for string vector. --- src/SystemTray.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SystemTray.cc b/src/SystemTray.cc index fb141d43..1953baaa 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc @@ -91,7 +91,7 @@ public: setEventMask(PropertyChangeMask); } - void pinByClassname(const std::vector left, const std::vector right); + void pinByClassname(const std::vector &left, const std::vector &right); bool isVisible() { return m_visible; } bool isXEmbedded() { return m_xembedded; } @@ -135,8 +135,8 @@ private: bool m_xembedded; // using xembed protocol? (i.e. unmap when done) }; -void TrayWindow::pinByClassname(const std::vector left, - const std::vector right) { +void TrayWindow::pinByClassname(const std::vector &left, + const std::vector &right) { // based on the parsed order list and a given window sets m_order to // an ordinal used to sort the tray icons.