mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +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:
@@ -182,7 +182,7 @@ void CSoundHandler::initSpellsSounds(const std::vector< ConstTransitivePtr<CSpel
|
||||
|
||||
if (!config["spell_sounds"].isNull())
|
||||
{
|
||||
BOOST_FOREACH(const JsonNode &node, config["spell_sounds"].Vector())
|
||||
for(const JsonNode &node : config["spell_sounds"].Vector())
|
||||
{
|
||||
int spellid = node["id"].Float();
|
||||
const CSpell *s = CGI->spellh->spells[spellid];
|
||||
|
||||
Reference in New Issue
Block a user