summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-06-01 20:39:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-02 09:45:32 +0200
commit6585fe3fc154c518d657202295a2c5214de55b56 (patch)
treedf9a6312957e59aaf846e397d2feb657a4a5da97 /sw/source/ui
parent51572f6024da72fbed4d9d1936041962afb1cac7 (diff)
elide some unnecessary null checks
getSvxBrushItemFromSourceSet never returns nullptr, and therefore neither does SwFormat::makeBackgroundBrushItem Change-Id: I618e45c5e336f93a7bde3172f4a349b9672d0ff0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135277 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx
index ec945dc6f8c3..2391919aa1c4 100644
--- a/sw/source/ui/dialog/uiregionsw.cxx
+++ b/sw/source/ui/dialog/uiregionsw.cxx
@@ -773,7 +773,7 @@ IMPL_LINK_NOARG(SwEditRegionDlg, OkHdl, weld::Button&, void)
pSet->Put( pRepr->GetCol() );
std::unique_ptr<SvxBrushItem> aBrush(pFormat->makeBackgroundBrushItem(false));
- if( aBrush && pRepr->GetBackground() && *aBrush != *pRepr->GetBackground() )
+ if( pRepr->GetBackground() && *aBrush != *pRepr->GetBackground() )
pSet->Put( *pRepr->GetBackground() );
if( pFormat->GetFootnoteAtTextEnd(false) != pRepr->GetFootnoteNtAtEnd() )