Break loop early

This commit is contained in:
Dmitry-Me 2017-08-24 18:26:53 +03:00
parent 45996b1404
commit 3bcfc33014
1 changed files with 3 additions and 1 deletions

View File

@ -378,8 +378,10 @@ static void importPropertyGroup(const tinyxml2::XMLElement *node, std::map<std::
{
if (useOfMfc) {
for (const tinyxml2::XMLElement *e = node->FirstChildElement(); e; e = e->NextSiblingElement()) {
if (std::strcmp(e->Name(), "UseOfMfc") == 0)
if (std::strcmp(e->Name(), "UseOfMfc") == 0) {
*useOfMfc = true;
break;
}
}
}