fix AppendChild("string", RString) calls bool overload

This commit is contained in:
Glenn Maynard
2006-10-02 05:44:57 +00:00
parent aeee3d9758
commit f8e3807996
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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); }