From ea63b3d25a7c83773721f8ba6bf6d00c059d44fe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 May 2023 11:30:28 +0200 Subject: use more TypedWhichId Change-Id: I6c54c1276b36cbc71417486ffcee2ef9ef0cff7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152270 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/bastyp/fltfnc.cxx | 3 +-- sfx2/source/explorer/nochaos.cxx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index 11dcbd4051d8..b907bb65faec 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -373,8 +373,7 @@ ErrCode SfxFilterMatcher::GuessFilterControlDefaultUI( SfxMedium& rMedium, std: aDescriptor[utl::MediaDescriptor::PROP_URL ] <<= sURL; aDescriptor[utl::MediaDescriptor::PROP_INPUTSTREAM ] <<= xInStream; aDescriptor[utl::MediaDescriptor::PROP_INTERACTIONHANDLER] <<= rMedium.GetInteractionHandler(); - SfxStringItem const * it = static_cast( - rMedium.GetItemSet()->GetItem(SID_REFERER)); + SfxStringItem const * it = rMedium.GetItemSet()->GetItem(SID_REFERER); if (it != nullptr) { aDescriptor[utl::MediaDescriptor::PROP_REFERRER] <<= it->GetValue(); diff --git a/sfx2/source/explorer/nochaos.cxx b/sfx2/source/explorer/nochaos.cxx index ad4bd234389a..1ec9f106af93 100644 --- a/sfx2/source/explorer/nochaos.cxx +++ b/sfx2/source/explorer/nochaos.cxx @@ -26,7 +26,7 @@ #include -#define WID_CHAOS_START 500 +#define WID_CHAOS_START TypedWhichId(500) namespace { -- cgit