Explorar o código

Update OpenDDLParser.cpp

ihsinme %!s(int64=4) %!d(string=hai) anos
pai
achega
e1052f421b
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      contrib/openddlparser/code/OpenDDLParser.cpp

+ 1 - 3
contrib/openddlparser/code/OpenDDLParser.cpp

@@ -527,9 +527,7 @@ char *OpenDDLParser::parseName(char *in, char *end, Name **name) {
     in = parseIdentifier(in, end, &id);
     in = parseIdentifier(in, end, &id);
     if (id) {
     if (id) {
         currentName = new Name(ntype, id);
         currentName = new Name(ntype, id);
-        if (currentName) {
-            *name = currentName;
-        }
+        *name = currentName;
     }
     }
 
 
     return in;
     return in;