aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-05-08 09:11:52 -0400
committerDave Reisner <dreisner@archlinux.org>2014-05-08 09:12:04 -0400
commit83fc61efa19f92244b8e95a1fbd3899c50665920 (patch)
treeea3562dec59aa051b5d199ab539f14f7b3ddfb27
parentc46779e6a2eaf28702fadc1aabe032d422585ac5 (diff)
downloadmirror-ponymix-83fc61efa19f92244b8e95a1fbd3899c50665920.tar.gz
mirror-ponymix-83fc61efa19f92244b8e95a1fbd3899c50665920.tar.bz2
mirror-ponymix-83fc61efa19f92244b8e95a1fbd3899c50665920.zip
avoid extra copy of profile when resetting
-rw-r--r--pulse.cc2
1 files changed, 1 insertions, 1 deletions
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;