diff --git a/loolwsd/TileCache.cpp b/loolwsd/TileCache.cpp index 383bb8779..e7c983008 100644 --- a/loolwsd/TileCache.cpp +++ b/loolwsd/TileCache.cpp @@ -53,7 +53,7 @@ TileBeingRendered::TileBeingRendered() void TileBeingRendered::subscribe(const std::weak_ptr& session) { std::shared_ptr cmp = session.lock(); - for (auto s : _subscribers) + for (const auto& s : _subscribers) { if (s.lock().get() == cmp.get()) {