From 3bcfc3301490babc099938c8ab1c4024486ca0ab Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 24 Aug 2017 18:26:53 +0300 Subject: [PATCH] Break loop early --- lib/importproject.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index b5bf6ee69..4b6150605 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -378,8 +378,10 @@ static void importPropertyGroup(const tinyxml2::XMLElement *node, std::mapFirstChildElement(); e; e = e->NextSiblingElement()) { - if (std::strcmp(e->Name(), "UseOfMfc") == 0) + if (std::strcmp(e->Name(), "UseOfMfc") == 0) { *useOfMfc = true; + break; + } } }