summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-10-20 20:17:10 +0200
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-21 10:28:28 +0200
commite8d997c0cba3695eaeecc3513f695ddcf9dd954e (patch)
tree6fadc1ab790711852460a3889c29671f800b0952 /svx
parent2a700af795fc57876379802744a3f0707f8f592d (diff)
tdf#163486: PVS: identical sub-expressions
Since commit 78010a4db197ac44fb729a122464847931ee0e5b Author: Caolán McNamara <caolanm@redhat.com> Date: Thu Oct 4 15:37:14 2018 +0100 Resolves: tdf#106340 resize dialog when search/replace labels are shown/hidden V501 There are identical sub-expressions '!m_xReplaceAttrText->get_visible()' to the left and to the right of the '||' operator. V501 There are identical sub-expressions '!m_xReplaceAttrText->get_visible()' to the left and to the right of the '||' operator. Change-Id: Ib62557af291679c253162e3d72a39659691ef0b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175269 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/srchdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index f614a8a9aeb7..78704d415d6c 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -1532,7 +1532,7 @@ IMPL_LINK_NOARG(SvxSearchDialog, TemplateHdl_Impl, weld::Toggleable&, void)
if(!sDesc.isEmpty())
{
- if (!m_xReplaceAttrText->get_visible() || !m_xReplaceAttrText->get_visible())
+ if (!m_xSearchAttrText->get_visible() || !m_xReplaceAttrText->get_visible())
{
m_xSearchAttrText->show();
m_xReplaceAttrText->show();
@@ -1563,7 +1563,7 @@ IMPL_LINK_NOARG(SvxSearchDialog, TemplateHdl_Impl, weld::Toggleable&, void)
if(!sDesc.isEmpty())
{
- if (!m_xReplaceAttrText->get_visible() || !m_xReplaceAttrText->get_visible())
+ if (!m_xSearchAttrText->get_visible() || !m_xReplaceAttrText->get_visible())
{
m_xSearchAttrText->show();
m_xReplaceAttrText->show();