diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-25 11:30:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-25 20:14:03 +0200 |
commit | ea63b3d25a7c83773721f8ba6bf6d00c059d44fe (patch) | |
tree | 5b6ba1cf938f436489c391dda6ae3308d47c5c1c /sfx2 | |
parent | 3ec8822b62d647379999b4c09f3e72b9474b61a3 (diff) |
use more TypedWhichId
Change-Id: I6c54c1276b36cbc71417486ffcee2ef9ef0cff7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152270
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/fltfnc.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/explorer/nochaos.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
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<SfxStringItem const *>( - 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 <memory> -#define WID_CHAOS_START 500 +#define WID_CHAOS_START TypedWhichId<SfxStringItem>(500) namespace { |