aboutsummaryrefslogtreecommitdiffstats
path: root/pulse.cc
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-06 22:07:11 -0500
committerDave Reisner <dreisner@archlinux.org>2013-01-06 22:07:11 -0500
commitb22f92a207f5dc1c8152a978f255605eea138d67 (patch)
treec2fff3aa287d8a57bdfcc7877be725b34e45432a /pulse.cc
parentb195c6e81e94795dc5953f231cfddc9a61b6c604 (diff)
downloadmirror-ponymix-b22f92a207f5dc1c8152a978f255605eea138d67.tar.gz
mirror-ponymix-b22f92a207f5dc1c8152a978f255605eea138d67.tar.bz2
mirror-ponymix-b22f92a207f5dc1c8152a978f255605eea138d67.zip
avoid copying the passed vector to find_fuzzy
Diffstat (limited to 'pulse.cc')
-rw-r--r--pulse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pulse.cc b/pulse.cc
index ae4ccf2..6617a4f 100644
--- a/pulse.cc
+++ b/pulse.cc
@@ -265,7 +265,7 @@ void PulseClient::mainloop_iterate(pa_operation* op) {
}
template<class T>
-T* PulseClient::find_fuzzy(vector<T> haystack, const string& needle) {
+T* PulseClient::find_fuzzy(vector<T>& haystack, const string& needle) {
vector<T*> res;
for (T& item : haystack) {