From f8e3807996db0f7d1c342d6ea9f68dd44feb7b39 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 2 Oct 2006 05:44:57 +0000 Subject: [PATCH] fix AppendChild("string", RString) calls bool overload --- stepmania/src/XmlFile.cpp | 1 + stepmania/src/XmlFile.h | 1 + 2 files changed, 2 insertions(+) diff --git a/stepmania/src/XmlFile.cpp b/stepmania/src/XmlFile.cpp index 4ed9322f36..c45280c39d 100644 --- a/stepmania/src/XmlFile.cpp +++ b/stepmania/src/XmlFile.cpp @@ -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); } diff --git a/stepmania/src/XmlFile.h b/stepmania/src/XmlFile.h index 46069fa048..306f249c8e 100644 --- a/stepmania/src/XmlFile.h +++ b/stepmania/src/XmlFile.h @@ -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 );