summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-07-03 22:34:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-07-03 22:34:24 +0200
commit40194dc12fd93720c3bea0b3ae2bba54d0b7a82f (patch)
tree298b0a4ececc59a8a058c7c41c3c0ff88054cc85
parent3bd78cb6dbc89cbbddb0fcf020d39abb610a99d0 (diff)
error: reference cannot be bound to dereferenced null pointer
...and SwTxtAttr::GetAttr already asserts non-null-ness. Change-Id: I978f86103e8121e41bf95a2a79cd2263d6e47853
-rw-r--r--sw/source/core/layout/ftnfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/ftnfrm.cxx b/sw/source/core/layout/ftnfrm.cxx
index 88157ccba55b..32f05de8676e 100644
--- a/sw/source/core/layout/ftnfrm.cxx
+++ b/sw/source/core/layout/ftnfrm.cxx
@@ -479,7 +479,7 @@ SwTwips SwFtnFrm::ShrinkFrm( SwTwips nDist, bool bTst, bool bInfo )
if( nNum != USHRT_MAX )
{
SwTxtFtn* pTxtFtn = GetAttr();
- if( &pTxtFtn->GetAttr() && pTxtFtn->GetFtn().GetNumber() == nNum )
+ if( pTxtFtn->GetFtn().GetNumber() == nNum )
{
int bla = 5;
(void)bla;