Simplify.

This commit is contained in:
Steve Checkoway
2006-10-01 14:51:50 +00:00
parent 65007cf941
commit 01fb4540f3
15 changed files with 33 additions and 64 deletions
+1 -2
View File
@@ -33,8 +33,7 @@ bool BackgroundDef::operator==( const BackgroundDef &other ) const
XNode *BackgroundDef::CreateNode() const
{
XNode* pNode = new XNode;
pNode->m_sName = "BackgroundDef";
XNode* pNode = new XNode( "BackgroundDef" );
if( !m_sEffect.empty() )
pNode->AppendAttr( "Effect", m_sEffect );