~3v1n0/unity/scale-window-cast-protection

« back to all changes in this revision

Viewing changes to UnityCore/GLibSource.cpp

Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
 
190
190
SourceManager::~SourceManager()
191
191
{
192
 
  for (auto it = sources_.begin(); it != sources_.end();)
193
 
  {
194
 
    RemoveItem(it++);
195
 
  }
 
192
  RemoveAll();
196
193
}
197
194
 
198
195
bool SourceManager::Add(Source* source, std::string const& nick)
358
355
  return false;
359
356
}
360
357
 
 
358
void SourceManager::RemoveAll()
 
359
{
 
360
  for (auto it = sources_.begin(); it != sources_.end();)
 
361
    RemoveItem(it++);
 
362
}
 
363
 
361
364
void SourceManager::RemoveItem(SourcesMap::iterator it)
362
365
{
363
366
  auto source = it->second;