summaryrefslogtreecommitdiff
path: root/scripting/source/basprov/basscript.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/basprov/basscript.cxx')
-rw-r--r--scripting/source/basprov/basscript.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx
index 42935f05d179..37a2554ac955 100644
--- a/scripting/source/basprov/basscript.cxx
+++ b/scripting/source/basprov/basscript.cxx
@@ -100,8 +100,7 @@ namespace basprov
// not interested in
return;
}
- const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>( &rHint );
- if ( pSimpleHint && ( pSimpleHint->GetId() == SFX_HINT_DYING ) )
+ if ( rHint.GetId() == SFX_HINT_DYING )
{
m_documentBasicManager = nullptr;
EndListening( rBC ); // prevent multiple notifications