mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-24 00:36:29 +02:00
second part of c++11 update. gcc 4.5 and VS 2010 are no longer supported
- BOOST_FOREACH -> for - replaced several boost classes with std (e.g. unordered) - removed gcc-4.5 workarounds - ran clang c++11 migration tool to detect some cases: - - pointer initialized with "0" to nullptr - - replace for with iterators with range-based for - - use auto in some situations (type name specified twice, avoid long iterators type names)
This commit is contained in:
@@ -197,7 +197,7 @@ void CLogger::callTargets(const LogRecord & record) const
|
||||
TLockGuard _(mx);
|
||||
for(const CLogger * logger = this; logger != nullptr; logger = logger->parent)
|
||||
{
|
||||
BOOST_FOREACH(auto & target, logger->targets)
|
||||
for(auto & target : logger->targets)
|
||||
{
|
||||
target->write(record);
|
||||
}
|
||||
@@ -245,7 +245,7 @@ CLogManager::CLogManager()
|
||||
|
||||
CLogManager::~CLogManager()
|
||||
{
|
||||
BOOST_FOREACH(auto & i, loggers)
|
||||
for(auto & i : loggers)
|
||||
{
|
||||
delete i.second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user