diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-06-13 08:44:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-06-13 15:00:26 +0200 |
commit | 5a72adc1c39e4e2765da00475213d193350de84c (patch) | |
tree | a453e757e6ebf64edfc9147af2bb63b8d80fc31b /sd | |
parent | 1a7c927f6fb8fc4f6f2277a8442ce4b37f1ffccf (diff) |
cid#1603631 Dereference null return value
pColList is unused anyway, so just remove it
Change-Id: Iac5667d55c78463a0eca2edfa8699dcd87cfc16a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168766
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/tpaction.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/inc/tpaction.hxx | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx index 3d0f391edc17..5364193d38d1 100644 --- a/sd/source/ui/dlg/tpaction.cxx +++ b/sd/source/ui/dlg/tpaction.cxx @@ -140,9 +140,6 @@ void SdTPAction::SetView( const ::sd::View* pSdView ) SfxViewFrame* pFrame = pDocSh->GetViewShell()->GetViewFrame(); m_xLbTree->SetViewFrame( pFrame ); m_xLbTreeDocument->SetViewFrame( pFrame ); - - pColList = pDocSh->GetItem( SID_COLOR_TABLE )->GetColorList(); - DBG_ASSERT( pColList.is(), "No color table available!" ); } else { diff --git a/sd/source/ui/inc/tpaction.hxx b/sd/source/ui/inc/tpaction.hxx index 893192d256f2..596adc20ba7a 100644 --- a/sd/source/ui/inc/tpaction.hxx +++ b/sd/source/ui/inc/tpaction.hxx @@ -50,7 +50,6 @@ class SdTPAction final : public SfxTabPage private: const ::sd::View* mpView; SdDrawDocument* mpDoc; - XColorListRef pColList; bool bTreeUpdated; std::vector<css::presentation::ClickAction> maCurrentActions; |