Browse Source

Merge pull request #822 from ghost/queryattr

Add QueryAttribute for const char**
Lee Thomason 5 năm trước cách đây
mục cha
commit
d34d0ef5e0
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 );