mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 14:54:33 +00:00
Eliminate some copies
This commit is contained in:
parent
e61833c26e
commit
861a8c2c9c
@ -299,7 +299,7 @@ void Realm::notify()
|
|||||||
void Realm::send_local_notifications(const std::string &type)
|
void Realm::send_local_notifications(const std::string &type)
|
||||||
{
|
{
|
||||||
verify_thread();
|
verify_thread();
|
||||||
for (NotificationFunction notification : m_notifications) {
|
for (NotificationFunction const& notification : m_notifications) {
|
||||||
(*notification)(type);
|
(*notification)(type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user