Urk, forgot to build this one after merging and goofed a bit.

This commit is contained in:
Uli Kusterer 2014-01-25 03:37:16 +01:00
parent 2861a7e63a
commit 35ce309f73
2 changed files with 14 additions and 20 deletions

View File

@ -1325,7 +1325,15 @@ void XMLElement::SetText( float v )
}
void XMLElement::SetText( double v )
void XMLElement::SetText( double v )
{
char buf[BUF_SIZE];
XMLUtil::ToStr( v, buf, BUF_SIZE );
SetText( buf );
}
void XMLElement::SetText( long long v )
{
char buf[BUF_SIZE];
XMLUtil::ToStr( v, buf, BUF_SIZE );

View File

@ -1414,28 +1414,16 @@ public:
@endverbatim
*/
void SetText( const char* inText );
/// Convenince method for setting text inside and element. See SetText() for important limitations.
/// Convenience method for setting text inside and element. See SetText() for important limitations.
void SetText( int value );
/// Convenince method for setting text inside and element. See SetText() for important limitations.
/// Convenience method for setting text inside and element. See SetText() for important limitations.
void SetText( unsigned value );
/// Convenince method for setting text inside and element. See SetText() for important limitations.
/// Convenience method for setting text inside and element. See SetText() for important limitations.
void SetText( bool value );
/// Convenince method for setting text inside and element. See SetText() for important limitations.
/// Convenience method for setting text inside and element. See SetText() for important limitations.
void SetText( double value );
/// Convenince method for setting text inside and element. See SetText() for important limitations.
/// Convenience method for setting text inside and element. See SetText() for important limitations.
void SetText( float value );
/// Sets the text to the given number.
void SetText( int inNum );
/// Sets the text to the given number.
void SetText( unsigned inNum );
/// Sets the text to the given double.
void SetText( double inNum );
/// Sets the text to the given float.
void SetText( float inNum );
/// Sets the text to the given long long.
void SetText( long long inNum );
@ -1545,8 +1533,6 @@ public:
virtual bool ShallowEqual( const XMLNode* compare ) const;
private:
enum { BUF_SIZE = 200 };
XMLElement( XMLDocument* doc );
virtual ~XMLElement();
XMLElement( const XMLElement& ); // not supported