From b22f92a207f5dc1c8152a978f255605eea138d67 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 6 Jan 2013 22:07:11 -0500 Subject: avoid copying the passed vector to find_fuzzy --- pulse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pulse.cc') 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 -T* PulseClient::find_fuzzy(vector haystack, const string& needle) { +T* PulseClient::find_fuzzy(vector& haystack, const string& needle) { vector res; for (T& item : haystack) { -- cgit v1.2.3