TileCache: loop variable is copied but only used as const reference

Change-Id: I2f4ec5dad91abd6776095962070bd5b12021c24f
This commit is contained in:
Miklos Vajna 2016-04-25 09:11:59 +02:00
parent 246e341c66
commit f99e2146bc

View file

@ -53,7 +53,7 @@ TileBeingRendered::TileBeingRendered()
void TileBeingRendered::subscribe(const std::weak_ptr<MasterProcessSession>& session)
{
std::shared_ptr<MasterProcessSession> cmp = session.lock();
for (auto s : _subscribers)
for (const auto& s : _subscribers)
{
if (s.lock().get() == cmp.get())
{