summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3/gtkinst.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-07 14:36:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-11-07 18:06:10 +0100
commit3e511ac5b44e860a30cbf6d1d22e467b813bc04b (patch)
tree8a5058f9820a7f4a4b672e2f6b62b1248165472a /vcl/unx/gtk3/gtkinst.cxx
parent6645dfedef841a78d65202e9f0008f0a384e5e44 (diff)
cid#1493476 Logically dead code
Change-Id: I179e61b84a43c9ff43ff70de8b8f020682a53686 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124817 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3/gtkinst.cxx')
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index c7f6767668f9..5b4c06bf7025 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -9177,7 +9177,7 @@ void set_font(GtkLabel* pLabel, const vcl::Font& rFont)
// because pango_attr_list_change(..., pango_attr_size_new...) isn't
// sufficient on its own to ensure a new size sticks.
PangoAttrType aFilterAttrs[] = {PANGO_ATTR_ABSOLUTE_SIZE, PANGO_ATTR_SIZE, PANGO_ATTR_INVALID};
- PangoAttrList* pRemovedAttrs = pOrigList ? pango_attr_list_filter(pAttrList, filter_pango_attrs, &aFilterAttrs) : nullptr;
+ PangoAttrList* pRemovedAttrs = pango_attr_list_filter(pAttrList, filter_pango_attrs, &aFilterAttrs);
pango_attr_list_unref(pRemovedAttrs);
}