implement copy ctors

This commit is contained in:
Glenn Maynard
2005-09-09 03:23:10 +00:00
parent a36d189be5
commit b73d4e1a46
4 changed files with 68 additions and 8 deletions
+16
View File
@@ -9,6 +9,22 @@ WheelItemBaseData::WheelItemBaseData( WheelItemType wit, CString sText, RageColo
m_Flags = WheelNotifyIcon::Flags();
}
WheelItemBase::WheelItemBase( const WheelItemBase &cpy ):
ActorFrame( cpy ),
m_sprBar( cpy.m_sprBar ),
m_text( cpy.m_text ),
m_Type( cpy.m_Type ),
m_color( cpy.m_color )
{
if( cpy.m_pBar == const_cast<Sprite *> (&cpy.m_sprBar) )
m_pBar = &m_sprBar;
if( cpy.GetNumChildren() != 0 )
{
this->AddChild( &m_sprBar );
this->AddChild( &m_text );
}
}
WheelItemBase::WheelItemBase(CString sType)
{