summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-07-15 19:31:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-07-15 22:09:24 +0200
commit5062ffbfcae932edf096ce4f360f23b0fd61d111 (patch)
tree47ff82d81b9067614587211f8c16225aab2b9261 /svtools
parentc7911e7d6aac471018c69942256e4c9566c2183f (diff)
coverity#1437954 Dereference null return value
turn DBG_ASSERT into a real assert since... commit 904c97bbdf4c76709dbcacb11292668b98a9efd8 Date: Mon Jul 2 17:23:59 2018 +0200 move SvTreeList::*Sibling to SvTreeListEntry since they don't depend on SvTreeList at all Change-Id: Ib230ff2fc9ab1f68c6686c125dbf4213e77bea84 Reviewed-on: https://gerrit.libreoffice.org/57457 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svimpbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index 4f6914431dbe..69c866324279 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -1075,7 +1075,7 @@ void SvImpLBox::DrawNet(vcl::RenderContext& rRenderContext)
aPos1.AdjustY(nEntryHeightDIV2 );
pChild = pView->FirstChild( pEntry );
- DBG_ASSERT(pChild,"Child?");
+ assert(pChild && "Child?");
pChild = pChild->LastSibling();
nDistance = static_cast<sal_uInt16>(pView->GetVisiblePos(pChild) - pView->GetVisiblePos(pEntry));
aPos2 = aPos1;