Ver Fonte

Merge pull request #822 from ghost/queryattr

Add QueryAttribute for const char**
Lee Thomason há 5 anos atrás
pai
commit
d34d0ef5e0
1 ficheiros alterados com 4 adições e 0 exclusões
  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 );