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); } }