Skip to content

Commit

Permalink
Main: range loop refactoring (#3272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joilnen authored Jan 13, 2025
1 parent 85921de commit a038f65
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions OgreMain/src/OgreRoot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,12 @@ namespace Ogre {
of << "Render System=" << std::endl;
}

for (auto *rs : getAvailableRenderers())
for (const auto& r : getAvailableRenderers())
{
of << std::endl;
of << "[" << rs->getName() << "]" << std::endl;
const ConfigOptionMap& opts = rs->getConfigOptions();
for (ConfigOptionMap::const_iterator pOpt = opts.begin(); pOpt != opts.end(); ++pOpt)
{
of << pOpt->first << "=" << pOpt->second.currentValue << std::endl;
of << "[" << r->getName() << "]" << std::endl;
for (const auto& o : r->getConfigOptions()) {
of << o.first << "=" << o.second.currentValue << std::endl;
}
}

Expand Down

0 comments on commit a038f65

Please sign in to comment.