New methods to unsubscribe all readable/writeable ports of a midiPort object.
Moved the code to unsubscribe all readable and/or writeable ports to own methods and thus made them publically available to avoid duplicate code. Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
committed by
Tobias Doerffel
parent
227de591bd
commit
de26ba5f00
@@ -126,6 +126,14 @@ public:
|
||||
return( m_writablePorts );
|
||||
}
|
||||
|
||||
void unsubscribeAllReadablePorts( void );
|
||||
void unsubscribeAllWriteablePorts( void );
|
||||
inline void unsubscribeAllPorts( void )
|
||||
{
|
||||
unsubscribeAllReadablePorts();
|
||||
unsubscribeAllWriteablePorts();
|
||||
}
|
||||
|
||||
midiPortMenu * m_readablePortsMenu;
|
||||
midiPortMenu * m_writablePortsMenu;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user