From 3db3ff7e51e879d8e97b11977ded3ddb7de7aa3b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 7 Sep 2005 09:20:00 +0000 Subject: [PATCH] cleanup --- stepmania/src/Actor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 64471ba3ed..b083977f6c 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -230,9 +230,8 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode ) else if( pAttr->m_sName == "BaseZoomZ" ) SetBaseZoomZ( strtof( pAttr->m_sValue, NULL ) ); else if( EndsWith(pAttr->m_sName,"Command") ) { - CString sKeyName = pAttr->m_sName; /* "OnCommand" */ - - CString sValue = pAttr->m_sValue; + const CString &sKeyName = pAttr->m_sName; /* "OnCommand" */ + const CString &sValue = pAttr->m_sValue; apActorCommands apac( new ActorCommands( sValue ) ); CString sCmdName = sKeyName.Left( sKeyName.size()-7 );