Simplify: store attributes in a simple map<CString,CString>, not in an object.

Makes attributes lighter.
This commit is contained in:
Glenn Maynard
2005-10-11 10:24:07 +00:00
parent f533842452
commit 64d9c29568
8 changed files with 68 additions and 132 deletions
+2 -2
View File
@@ -222,8 +222,8 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
FOREACH_CONST_Attr( pNode, pAttr )
{
// Load Name, if any.
const CString &sKeyName = pAttr->m_sName;
const CString &sValue = pAttr->m_sValue;
const CString &sKeyName = pAttr->first;
const CString &sValue = pAttr->second;
if( sKeyName == "Name" )
{
m_sName = sValue;