diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-05-08 09:11:52 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-05-08 09:12:04 -0400 |
commit | 83fc61efa19f92244b8e95a1fbd3899c50665920 (patch) | |
tree | ea3562dec59aa051b5d199ab539f14f7b3ddfb27 | |
parent | c46779e6a2eaf28702fadc1aabe032d422585ac5 (diff) | |
download | mirror-ponymix-83fc61efa19f92244b8e95a1fbd3899c50665920.tar.gz mirror-ponymix-83fc61efa19f92244b8e95a1fbd3899c50665920.tar.bz2 mirror-ponymix-83fc61efa19f92244b8e95a1fbd3899c50665920.zip |
avoid extra copy of profile when resetting
-rw-r--r-- | pulse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |