Explorar el Código

Merge pull request #822 from ghost/queryattr

Add QueryAttribute for const char**
Lee Thomason hace 5 años
padre
commit
d34d0ef5e0
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      tinyxml2.h

+ 4 - 0
tinyxml2.h

@@ -1456,6 +1456,10 @@ public:
 		return QueryFloatAttribute( name, value );
 	}
 
+	XMLError QueryAttribute(const char* name, const char** value) const {
+		return QueryStringAttribute(name, value);
+		}
+
 	/// Sets the named attribute to value.
     void SetAttribute( const char* name, const char* value )	{
         XMLAttribute* a = FindOrCreateAttribute( name );