Issue #134: Change 3 methods to not being inlined. They reference the StrPair class, which is not exported, thus creating linker problems with tinyxml2 in a DLL.

This commit is contained in:
Michael Daumling
2013-10-22 17:03:37 +02:00
parent 927fe73c5b
commit 2162688ad3
2 changed files with 20 additions and 9 deletions

View File

@@ -643,9 +643,7 @@ public:
Text: the text string
@endverbatim
*/
const char* Value() const {
return _value.GetStr();
}
const char* Value() const;
/** Set the Value of an XML node.
@sa Value()
@@ -1014,13 +1012,11 @@ class TINYXML2_LIB XMLAttribute
friend class XMLElement;
public:
/// The name of the attribute.
const char* Name() const {
return _name.GetStr();
}
const char* Name() const;
/// The value of the attribute.
const char* Value() const {
return _value.GetStr();
}
const char* Value() const;
/// The next attribute in the list.
const XMLAttribute* Next() const {
return _next;