aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;