diff options
Diffstat (limited to 'basic/source/runtime/stdobj1.cxx')
-rw-r--r-- | basic/source/runtime/stdobj1.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx index 061aa646f038..3f52a8a19b2a 100644 --- a/basic/source/runtime/stdobj1.cxx +++ b/basic/source/runtime/stdobj1.cxx @@ -144,7 +144,7 @@ void SbStdPicture::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, const SfxHint& rHint, const TypeId& rHintType ) { - const SbxHint* pHint = PTR_CAST( SbxHint, &rHint ); + const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); if( pHint ) { @@ -269,7 +269,7 @@ SbxVariable* SbStdFont::Find( const OUString& rName, SbxClassType t ) void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, const SfxHint& rHint, const TypeId& rHintType ) { - const SbxHint* pHint = PTR_CAST( SbxHint, &rHint ); + const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); if( pHint ) { @@ -438,7 +438,7 @@ SbxVariable* SbStdClipboard::Find( const OUString& rName, SbxClassType t ) void SbStdClipboard::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, const SfxHint& rHint, const TypeId& rHintType ) { - const SbxHint* pHint = PTR_CAST( SbxHint, &rHint ); + const SbxHint* pHint = dynamic_cast<const SbxHint*>(&rHint); if( pHint ) { |