From 861a8c2c9cb47947fe449f2a4187febfa10d0c75 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 24 Aug 2015 13:22:42 -0700 Subject: [PATCH] Eliminate some copies --- src/object-store/shared_realm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object-store/shared_realm.cpp b/src/object-store/shared_realm.cpp index df89301c..fe97d8b3 100644 --- a/src/object-store/shared_realm.cpp +++ b/src/object-store/shared_realm.cpp @@ -299,7 +299,7 @@ void Realm::notify() void Realm::send_local_notifications(const std::string &type) { verify_thread(); - for (NotificationFunction notification : m_notifications) { + for (NotificationFunction const& notification : m_notifications) { (*notification)(type); } }