Simplify.

This commit is contained in:
Steve Checkoway
2006-10-01 14:24:19 +00:00
parent b885a19f89
commit b22b7972aa
2 changed files with 10 additions and 16 deletions
+1 -1
View File
@@ -498,7 +498,7 @@ void XNode::GetValue( RString &out ) const { out = m_sValue; }
void XNode::GetValue( int &out ) const { out = atoi(m_sValue); }
void XNode::GetValue( float &out ) const { out = StringToFloat(m_sValue); }
void XNode::GetValue( bool &out ) const { out = atoi(m_sValue) != 0; }
void XNode::GetValue( unsigned &out ) const { out = 0; sscanf(m_sValue,"%u",&out); }
void XNode::GetValue( unsigned &out ) const { out = strtoul(m_sValue,NULL,0); }
void XNode::GetValue( DateTime &out ) const { out.FromString( m_sValue ); }
bool XNode::GetAttrValue( const RString &sName, RString &out ) const { const RString* pAttr=GetAttr(sName); if(pAttr==NULL) return false; out = *pAttr; return true; }