Refactoring, use continue in loop
This commit is contained in:
parent
5abf39503a
commit
60f819dbe7
|
@ -267,7 +267,8 @@ namespace {
|
|||
if (a)
|
||||
name = a;
|
||||
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)
|
||||
configuration = e->GetText();
|
||||
else if (std::strcmp(e->Name(),"Platform")==0) {
|
||||
|
@ -281,7 +282,6 @@ namespace {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
std::string name;
|
||||
std::string configuration;
|
||||
enum { Win32, x64, Unknown } platform;
|
||||
|
|
Loading…
Reference in New Issue