summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r--vcl/source/window/toolbox.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 84a28c84c4e4..8b4308a9503a 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -4421,8 +4421,7 @@ bool ToolBox::Notify( NotifyEvent& rNEvt )
void ToolBox::Command( const CommandEvent& rCEvt )
{
- if ( maCommandHandler.IsSet() )
- maCommandHandler.Call( &rCEvt );
+ maCommandHandler.Call( &rCEvt );
// depict StartDrag on MouseButton/Left/Alt
if ( (rCEvt.GetCommand() == CommandEventId::StartDrag) && rCEvt.IsMouseEvent() &&
@@ -4515,8 +4514,7 @@ void ToolBox::StateChanged( StateChangedType nType )
Invalidate();
}
- if ( maStateChangedHandler.IsSet() )
- maStateChangedHandler.Call( &nType );
+ maStateChangedHandler.Call( &nType );
}
void ToolBox::DataChanged( const DataChangedEvent& rDCEvt )
@@ -4535,8 +4533,7 @@ void ToolBox::DataChanged( const DataChangedEvent& rDCEvt )
Invalidate();
}
- if ( maDataChangedHandler.IsSet() )
- maDataChangedHandler.Call( &rDCEvt );
+ maDataChangedHandler.Call( &rDCEvt );
}
bool ToolBox::PrepareToggleFloatingMode()