* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teulière <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
CtrlGeneric::~CtrlGeneric()
{
- if( m_pPosition )
- {
- delete m_pPosition;
- }
+ delete m_pPosition;
if( m_pVisible )
{
m_pVisible->delObserver( this );
const Position &rPosition )
{
m_pLayout = pLayout;
- if( m_pPosition )
- {
- delete m_pPosition;
- }
+ delete m_pPosition;
m_pPosition = new Position( rPosition );
onPositionChange();
}
}
-void CtrlGeneric::onUpdate( Subject<VarBool, void*> &rVariable, void *arg )
+void CtrlGeneric::onUpdate( Subject<VarBool> &rVariable, void *arg )
{
// Is it the visibility variable ?
if( &rVariable == m_pVisible )