Преглед изворни кода

Add QueryAttribute for const char**

justnope пре 5 година
родитељ
комит
5ee20feaf0
1 измењених фајлова са 4 додато и 0 уклоњено
  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 );