summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/split.cxx3
-rw-r--r--vcl/source/window/toolbox.cxx9
2 files changed, 4 insertions, 8 deletions
diff --git a/vcl/source/window/split.cxx b/vcl/source/window/split.cxx
index af33e4f5d98c..115ec625e159 100644
--- a/vcl/source/window/split.cxx
+++ b/vcl/source/window/split.cxx
@@ -450,8 +450,7 @@ void Splitter::Split()
void Splitter::EndSplit()
{
- if ( maEndSplitHdl.IsSet() )
- maEndSplitHdl.Call( this );
+ maEndSplitHdl.Call( this );
}
void Splitter::Splitting( Point& /* rSplitPos */ )
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()