fix AppendChild("string", RString) calls bool overload
This commit is contained in:
@@ -508,6 +508,7 @@ bool XNode::GetAttrValue( const RString &sName, bool &out ) const { const RStrin
|
||||
bool XNode::GetAttrValue( const RString &sName, unsigned &out ) const { const RString* pAttr=GetAttr(sName); if(pAttr==NULL) return false; out = 0; sscanf(*pAttr,"%u",&out); return true; }
|
||||
bool XNode::GetAttrValue( const RString &sName, DateTime &out ) const { const RString* pAttr=GetAttr(sName); if(pAttr==NULL) return false; out.FromString( *pAttr ); return true; }
|
||||
|
||||
void XNode::SetValue( const RString &v ) { m_sValue = v; }
|
||||
void XNode::SetValue( int v ) { m_sValue = ssprintf("%d",v); }
|
||||
void XNode::SetValue( float v ) { m_sValue = ssprintf("%f",v); }
|
||||
void XNode::SetValue( bool v ) { m_sValue = ssprintf("%d",v); }
|
||||
|
||||
@@ -50,6 +50,7 @@ public:
|
||||
void GetValue( bool &out ) const;
|
||||
void GetValue( unsigned &out ) const;
|
||||
void GetValue( DateTime &out ) const;
|
||||
void SetValue( const RString &v );
|
||||
void SetValue( int v );
|
||||
void SetValue( float v );
|
||||
void SetValue( bool v );
|
||||
|
||||
Reference in New Issue
Block a user