summaryrefslogtreecommitdiff
path: root/svx/source/sdr/properties/textproperties.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/properties/textproperties.cxx')
-rw-r--r--svx/source/sdr/properties/textproperties.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx
index e4a2a5f89744..0196faa3b44d 100644
--- a/svx/source/sdr/properties/textproperties.cxx
+++ b/svx/source/sdr/properties/textproperties.cxx
@@ -554,7 +554,7 @@ namespace sdr
const svx::ITextProvider& rTextProvider(getTextProvider());
if(HAS_BASE(SfxStyleSheet, &rBC))
{
- SfxSimpleHint* pSimple = PTR_CAST(SfxSimpleHint, &rHint);
+ const SfxSimpleHint* pSimple = dynamic_cast<const SfxSimpleHint*>(&rHint);
sal_uInt32 nId(pSimple ? pSimple->GetId() : 0L);
if(SFX_HINT_DATACHANGED == nId)
@@ -595,7 +595,7 @@ namespace sdr
}
else if(HAS_BASE(SfxStyleSheetBasePool, &rBC))
{
- SfxStyleSheetHintExtended* pExtendedHint = PTR_CAST(SfxStyleSheetHintExtended, &rHint);
+ const SfxStyleSheetHintExtended* pExtendedHint = dynamic_cast<const SfxStyleSheetHintExtended*>(&rHint);
if(pExtendedHint
&& SFX_STYLESHEET_MODIFIED == pExtendedHint->GetHint())