Refactoring, use continue in loop

This commit is contained in:
Daniel Marjamäki 2017-08-02 08:00:52 +02:00
parent 5abf39503a
commit 60f819dbe7
1 changed files with 12 additions and 12 deletions

View File

@ -267,7 +267,8 @@ namespace {
if (a) if (a)
name = a; name = a;
for (const tinyxml2::XMLElement *e = cfg->FirstChildElement(); e; e = e->NextSiblingElement()) { for (const tinyxml2::XMLElement *e = cfg->FirstChildElement(); e; e = e->NextSiblingElement()) {
if (e->GetText()) { if (!e->GetText())
continue;
if (std::strcmp(e->Name(),"Configuration")==0) if (std::strcmp(e->Name(),"Configuration")==0)
configuration = e->GetText(); configuration = e->GetText();
else if (std::strcmp(e->Name(),"Platform")==0) { else if (std::strcmp(e->Name(),"Platform")==0) {
@ -281,7 +282,6 @@ namespace {
} }
} }
} }
}
std::string name; std::string name;
std::string configuration; std::string configuration;
enum { Win32, x64, Unknown } platform; enum { Win32, x64, Unknown } platform;