summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-04 10:10:23 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-04 13:31:35 +0200
commit7e57b5ad17c96af2d92cbf22fe3362a246786c24 (patch)
tree1c7563ceace0252eddf13ef2973853cd5ac18709
parent2946c7c62718cb74feab554b5939ec340e6c4280 (diff)
coverity#703995 Uncheck return value
Change-Id: I84d219e65966c18092d1deef163efcf7b189af79
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 262eff3314bb..64113182aab3 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -471,8 +471,8 @@ bool ScChildrenShapes::ReplaceChild (::accessibility::AccessibleShape* pCurrentC
{
OSL_ENSURE(pCurrentChild->GetXShape().get() == pReplacement->GetXShape().get(), "XShape changes and should be inserted sorted");
SortedShapes::iterator aItr;
- FindShape(pCurrentChild->GetXShape(), aItr);
- if (aItr != maZOrderedShapes.end() && (*aItr))
+
+ if (FindShape(pCurrentChild->GetXShape(), aItr) || (aItr != maZOrderedShapes.end() && (*aItr)))
{
if ((*aItr)->pAccShape)
{