summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/notesuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/notesuno.cxx')
-rw-r--r--sc/source/ui/unoobj/notesuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/notesuno.cxx b/sc/source/ui/unoobj/notesuno.cxx
index ca70be593a2a..fed3a83f161f 100644
--- a/sc/source/ui/unoobj/notesuno.cxx
+++ b/sc/source/ui/unoobj/notesuno.cxx
@@ -77,13 +77,13 @@ ScAnnotationObj::~ScAnnotationObj()
void ScAnnotationObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
- if ( rHint.ISA( ScUpdateRefHint ) )
+ if ( dynamic_cast<const ScUpdateRefHint*>(&rHint) )
{
// const ScUpdateRefHint& rRef = (const ScUpdateRefHint&)rHint;
//! Ref-Update
}
- else if ( rHint.ISA( SfxSimpleHint ) &&
+ else if ( dynamic_cast<const SfxSimpleHint*>(&rHint) &&
((const SfxSimpleHint&)rHint).GetId() == SFX_HINT_DYING )
{
pDocShell = NULL; // ungueltig geworden