fix assertion failures when copying things containing ThemeMetrics
This commit is contained in:
@@ -33,6 +33,14 @@ public:
|
|||||||
ThemeManager::Subscribe( this );
|
ThemeManager::Subscribe( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ThemeMetric( const ThemeMetric<T> &cpy ):
|
||||||
|
m_sGroup( cpy.m_sGroup ),
|
||||||
|
m_sName( cpy.m_sName ),
|
||||||
|
m_currentValue( cpy.m_currentValue )
|
||||||
|
{
|
||||||
|
ThemeManager::Subscribe( this );
|
||||||
|
}
|
||||||
|
|
||||||
~ThemeMetric()
|
~ThemeMetric()
|
||||||
{
|
{
|
||||||
ThemeManager::Unsubscribe( this );
|
ThemeManager::Unsubscribe( this );
|
||||||
|
|||||||
Reference in New Issue
Block a user