From a66731982e93cdcc5beaa5b0586a7f12a7fc0ef6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 8 Dec 2016 10:26:01 +0200 Subject: convert SFX_HINT to scoped enum Notes (*) In SC, BULK_DATACHANGED was or'ed into the hint id. Replaced with a dynamic_cast check. (*) In SC, removed the hint id field from ScIndexHint, no point in storing the hint id twice (*) Fold the SfxStyleSheetHintId enum into the new SfxHintId enum, no point in storing two different hint ids (*) In some cases, multiple #define's used to map to the same SFX_HINT value (notably the SFX_HINT_USER* values). I made all of those separate values. Change-Id: I990e2fb587335ebc51c9005588c6a44f768d9de5 Reviewed-on: https://gerrit.libreoffice.org/31751 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- include/basic/sbx.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/basic/sbx.hxx') diff --git a/include/basic/sbx.hxx b/include/basic/sbx.hxx index 35d09c45d450..d52b6ce42d42 100644 --- a/include/basic/sbx.hxx +++ b/include/basic/sbx.hxx @@ -94,7 +94,7 @@ class BASIC_DLLPUBLIC SbxHint : public SfxHint { SbxVariable* pVar; public: - SbxHint( sal_uInt32 n, SbxVariable* v ) : SfxHint( n ), pVar( v ) {} + SbxHint( SfxHintId n, SbxVariable* v ) : SfxHint( n ), pVar( v ) {} SbxVariable* GetVar() const { return pVar; } }; @@ -103,7 +103,7 @@ class BASIC_DLLPUBLIC SbxAlias : public SbxVariable, public SfxListener { SbxVariableRef xAlias; virtual ~SbxAlias() override; - virtual void Broadcast( sal_uInt32 ) override; + virtual void Broadcast( SfxHintId ) override; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; public: SbxAlias( const SbxAlias& ); -- cgit