From 41581fe7d782f261c19594c89875666f99c91af1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 4 Apr 2024 11:21:13 +0200 Subject: fix 'tdf#158773 reduce dynamic_cast'ing in CustomShapeProperties::Notify' I messed up in commit 9c5fda14fff397d5d503f749ad019791d7e4ef83 Author: Noel Grandin 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 --- include/svl/hint.hxx | 4 ++-- svl/source/items/style.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/svl/hint.hxx b/include/svl/hint.hxx index 860ea4219c56..e8971934c7d4 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 0f208ad1cf26..bcd90faeaef4 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 )) {} -- cgit