summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-07 09:56:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-07 12:24:41 +0000
commit624eb1cc6a42ed37a351c14bdee4e0007959c2d0 (patch)
treec9adc41c1c134a3db20ec24efe33dc4f04cf6234 /svx
parentf70d03436b7b501e0ed1d745935a204b9b97b855 (diff)
coverity#1132667 Unchecked dynamic_cast
Change-Id: Ia1e8a041d1eb1770757731554ab4fe007a62c111
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/accessibletableshape.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/table/accessibletableshape.cxx b/svx/source/table/accessibletableshape.cxx
index fa6d20a05d9a..1aef6422f66a 100644
--- a/svx/source/table/accessibletableshape.cxx
+++ b/svx/source/table/accessibletableshape.cxx
@@ -291,9 +291,10 @@ void SAL_CALL AccessibleTableShapeImpl::modified( const EventObject& /*aEvent*/
}
//notify bridge to update the acc cache.
AccessibleTableShape *pAccTable = dynamic_cast <AccessibleTableShape *> (mxAccessible.get());
- pAccTable->CommitChange(AccessibleEventId::INVALIDATE_ALL_CHILDREN, Any(), Any());
+ if (pAccTable)
+ pAccTable->CommitChange(AccessibleEventId::INVALIDATE_ALL_CHILDREN, Any(), Any());
}
- catch( Exception& )
+ catch( const Exception& )
{
OSL_FAIL("svx::AccessibleTableShape::modified(), exception caught!");
}