Changeset 4491 in orxonox.OLD for orxonox/trunk/src/lib/tinyxml/tinyxml.cc
- Timestamp:
- Jun 3, 2005, 1:40:28 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/tinyxml/tinyxml.cc
r4261 r4491 319 319 for ( node = firstChild; node; node = node->next ) 320 320 { 321 if ( node->SValue() == TIXML_STRING( _value ))321 if ( node->SValue() == _value ) 322 322 return node; 323 323 } … … 331 331 for ( node = firstChild; node; node = node->next ) 332 332 { 333 if ( node->SValue() == TIXML_STRING( _value ))333 if ( node->SValue() == _value ) 334 334 return node; 335 335 } … … 343 343 for ( node = lastChild; node; node = node->prev ) 344 344 { 345 if ( node->SValue() == TIXML_STRING (_value))345 if ( node->SValue() == _value ) 346 346 return node; 347 347 } … … 354 354 for ( node = lastChild; node; node = node->prev ) 355 355 { 356 if ( node->SValue() == TIXML_STRING (_value))356 if ( node->SValue() == _value ) 357 357 return node; 358 358 } … … 360 360 } 361 361 362 const TiXmlNode* TiXmlNode::IterateChildren( TiXmlNode* previous ) const362 const TiXmlNode* TiXmlNode::IterateChildren( const TiXmlNode* previous ) const 363 363 { 364 364 if ( !previous ) … … 386 386 } 387 387 388 const TiXmlNode* TiXmlNode::IterateChildren( const char * val, TiXmlNode* previous ) const388 const TiXmlNode* TiXmlNode::IterateChildren( const char * val, const TiXmlNode* previous ) const 389 389 { 390 390 if ( !previous ) … … 417 417 for ( node = next; node; node = node->next ) 418 418 { 419 if ( node->SValue() == TIXML_STRING (_value))419 if ( node->SValue() == _value ) 420 420 return node; 421 421 } … … 428 428 for ( node = next; node; node = node->next ) 429 429 { 430 if ( node->SValue() == TIXML_STRING (_value))430 if ( node->SValue() == _value ) 431 431 return node; 432 432 } … … 439 439 for ( node = prev; node; node = node->prev ) 440 440 { 441 if ( node->SValue() == TIXML_STRING (_value))441 if ( node->SValue() == _value ) 442 442 return node; 443 443 } … … 450 450 for ( node = prev; node; node = node->prev ) 451 451 { 452 if ( node->SValue() == TIXML_STRING (_value))452 if ( node->SValue() == _value ) 453 453 return node; 454 454 } … … 723 723 void TiXmlElement::SetDoubleAttribute( const char * name, double val ) 724 724 { 725 char buf[ 128];725 char buf[256]; 726 726 sprintf( buf, "%f", val ); 727 727 SetAttribute( name, buf ); … … 1141 1141 void TiXmlAttribute::SetDoubleValue( double _value ) 1142 1142 { 1143 char buf [ 64];1143 char buf [256]; 1144 1144 sprintf (buf, "%lf", _value); 1145 1145 SetValue (buf); … … 1413 1413 } 1414 1414 1415 const TiXmlAttribute* 1415 const TiXmlAttribute* TiXmlAttributeSet::Find( const char * name ) const 1416 1416 { 1417 1417 const TiXmlAttribute* node;
Note: See TracChangeset
for help on using the changeset viewer.