Explorar el Código

修复加载xml未压入容器的bug。

jianfeng1.wang hace 2 años
padre
commit
fac9082df0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      TCLCommand/TCLCommand/Command.cpp

+ 3 - 0
TCLCommand/TCLCommand/Command.cpp

@@ -312,6 +312,9 @@ bool TCLCommand::ParseCommandsFromXml(std::string strFileOrString, std::vector<C
 			pAttr = pAttr->Next();
 		}
 		
+		if ( cmdparam.name.size() )
+			vtCommandParams.push_back(cmdparam);
+
 		pXmlElent = pXmlElent->NextSiblingElement();
 	}