tinyxml core class uses a 'value' variable. method io and tempvars altered to work around the 'conflict'

This commit is contained in:
Azaezel 2018-03-15 20:45:18 -05:00
parent 2580e3329c
commit bb9d181615
2 changed files with 5 additions and 5 deletions

View file

@ -199,16 +199,16 @@ void fsTiXmlAttribute::Print( FileStream& stream, int depth, TIXML_STRING* str )
{ {
TIXML_STRING n, v; TIXML_STRING n, v;
TiXmlString value = TiXmlString(Value()); TiXmlString val = TiXmlString(Value());
EncodeString( NameTStr(), &n ); EncodeString( NameTStr(), &n );
EncodeString( value, &v ); EncodeString( val, &v );
for ( int i=0; i< depth; i++ ) { for ( int i=0; i< depth; i++ ) {
stream.writeText( " " ); stream.writeText( " " );
} }
if (value.find ('\"') == TIXML_STRING::npos) { if (val.find ('\"') == TIXML_STRING::npos) {
const char* pValue = v.c_str(); const char* pValue = v.c_str();
char buffer[4096]; char buffer[4096];
const S32 length = dSprintf(buffer, sizeof(buffer), "%s=\"%s\"", n.c_str(), pValue); const S32 length = dSprintf(buffer, sizeof(buffer), "%s=\"%s\"", n.c_str(), pValue);

View file

@ -129,7 +129,7 @@ public:
attrib->SetValue( _value ); attrib->SetValue( _value );
} }
} }
void SetAttribute( const char * name, int value ) void SetAttribute( const char * name, int _value)
{ {
TiXmlAttribute* attrib = attributeSet.Find( name ); TiXmlAttribute* attrib = attributeSet.Find( name );
if(!attrib) if(!attrib)
@ -139,7 +139,7 @@ public:
attrib->SetName( name ); attrib->SetName( name );
} }
if ( attrib ) { if ( attrib ) {
attrib->SetIntValue( value ); attrib->SetIntValue(_value);
} }
} }
TiXmlNode* Identify( const char* p, TiXmlEncoding encoding ); TiXmlNode* Identify( const char* p, TiXmlEncoding encoding );