TileCache: loop variable is copied but only used as const reference
Change-Id: I2f4ec5dad91abd6776095962070bd5b12021c24f
This commit is contained in:
parent
246e341c66
commit
f99e2146bc
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue