From 25a6734111e4fbf51efdcbeff3f75dd36dcf38c9 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 24 Aug 2015 13:22:42 -0700 Subject: [PATCH] Eliminate some copies --- shared_realm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared_realm.cpp b/shared_realm.cpp index df89301c3f..fe97d8b3ec 100644 --- a/shared_realm.cpp +++ b/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); } }