fix 'tdf#158773 reduce dynamic_cast'ing in CustomShapeProperties::Notify'
I messed up in
commit 9c5fda14fff397d5d503f749ad019791d7e4ef83
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Wed Mar 6 16:20:41 2024 +0200
tdf#158773 reduce dynamic_cast'ing in CustomShapeProperties::Notify
and forgot to actually use the new SfxHintId::StyleSheetModifiedExtended
I created in the constructor of the SfxStyleSheetHint class
Change-Id: Ica661a156d72c8a4b8ad415b6f45fe5d3458ba26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165787
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/include/svl/hint.hxx b/include/svl/hint.hxx
index 860ea42..e897193 100644
--- a/include/svl/hint.hxx
+++ b/include/svl/hint.hxx
@@ -103,8 +103,8 @@ enum class SfxHintId {
// SFX stylesheet
StyleSheetCreated, // new
StyleSheetModified, // changed
StyleSheetModifiedExtended, // changed, but using the SfxStyleSheetModifiedHint, not the SfxStyleSheetHint
StyleSheetModified, // changed (used by the SfxStyleSheetHint class)
StyleSheetModifiedExtended, // changed (used by the SfxStyleSheetModifiedHint class)
StyleSheetChanged, // erased and re-created (replaced)
StyleSheetErased, // erased
StyleSheetInDestruction, // in the process of being destructed
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index 0f208ad..bcd90fa 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -66,7 +66,7 @@ SfxStyleSheetModifiedHint::SfxStyleSheetModifiedHint
OUString aOldName,
SfxStyleSheetBase& rStyleSheet // Remains with the caller
)
: SfxStyleSheetHint( SfxHintId::StyleSheetModified, rStyleSheet ),
: SfxStyleSheetHint( SfxHintId::StyleSheetModifiedExtended, rStyleSheet ),
aName(std::move( aOldName ))
{}