diff --git a/shared_realm.cpp b/shared_realm.cpp index df89301c..fe97d8b3 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); } }