From 83fc61efa19f92244b8e95a1fbd3899c50665920 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 8 May 2014 09:11:52 -0400 Subject: avoid extra copy of profile when resetting --- pulse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulse.cc b/pulse.cc index 08c961a..40234d9 100644 --- a/pulse.cc +++ b/pulse.cc @@ -454,7 +454,7 @@ bool PulseClient::SetProfile(Card& card, const string& profile) { if (success) { // Update the profile - for (const Profile p : card.profiles_) { + for (const Profile& p : card.profiles_) { if (p.name == profile) { card.active_profile_ = p; break; -- cgit v1.2.3