diff options
Diffstat (limited to 'sfx2/source/control/request.cxx')
-rw-r--r-- | sfx2/source/control/request.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index ccefe9573b9f..2cadc7924525 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -32,7 +32,7 @@ #include <comphelper/processfactory.hxx> -#include <svl/smplhint.hxx> +#include <svl/hint.hxx> #include <sfx2/request.hxx> #include <sfx2/dispatch.hxx> @@ -95,8 +95,7 @@ struct SfxRequest_Impl: public SfxListener void SfxRequest_Impl::Notify( SfxBroadcaster&, const SfxHint &rHint ) { - const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint); - if ( pSimpleHint && pSimpleHint->GetId() == SFX_HINT_DYING ) + if ( rHint.GetId() == SFX_HINT_DYING ) pAnti->Cancel(); } |