summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-29 11:59:09 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-29 21:23:07 +0200
commit2bad2224090eb2802111760ec83db230aeca0616 (patch)
tree3654a9e49350f10099936ce52bfd8dd8e85acd76 /sw/source/core
parent9bc04a380016c7537850b3f929afab21448eac03 (diff)
futile to null check here if we deref afterwards anyway
Change-Id: I994b276ad39b09547cb1dbd3710daf519c5f5c66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166864 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/access/acctable.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx
index 3c8beaf9a0a4..d58a8b74b1ae 100644
--- a/sw/source/core/access/acctable.cxx
+++ b/sw/source/core/access/acctable.cxx
@@ -611,9 +611,7 @@ SwAccessibleTable::SwAccessibleTable(
SwAccessibleContext( pInitMap, AccessibleRole::TABLE, pTabFrame )
{
const SwFrameFormat* pFrameFormat = pTabFrame->GetFormat();
- if(pFrameFormat)
- StartListening(const_cast<SwFrameFormat*>(pFrameFormat)->GetNotifier());
-
+ StartListening(const_cast<SwFrameFormat*>(pFrameFormat)->GetNotifier());
SetName( pFrameFormat->GetName() + "-" + OUString::number( pTabFrame->GetPhyPageNum() ) );
const OUString sArg1( static_cast< const SwTabFrame * >( GetFrame() )->GetFormat()->GetName() );
@@ -1620,8 +1618,7 @@ SwAccessibleTableColHeaders::SwAccessibleTableColHeaders(
SolarMutexGuard aGuard;
const SwFrameFormat* pFrameFormat = pTabFrame->GetFormat();
- if(pFrameFormat)
- StartListening(const_cast<SwFrameFormat*>(pFrameFormat)->GetNotifier());
+ StartListening(const_cast<SwFrameFormat*>(pFrameFormat)->GetNotifier());
const OUString aName = pFrameFormat->GetName() + "-ColumnHeaders";
SetName( aName + "-" + OUString::number( pTabFrame->GetPhyPageNum() ) );