[Libreoffice-commits] core.git: basctl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 16 07:34:14 UTC 2019


 basctl/source/basicide/macrodlg.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit b43a26ac51cf4c3621a5353b2493f5873713ff6d
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 15 21:52:18 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jul 16 09:33:28 2019 +0200

    cid#1448219 silence Unchecked return value
    
    Change-Id: I716096d8d165d374f5164d43e5e1c95910c53411
    Reviewed-on: https://gerrit.libreoffice.org/75666
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index 3f7585decefe..019a87801ad7 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -496,11 +496,8 @@ IMPL_LINK_NOARG(MacroChooser, BasicSelectHdl, weld::TreeView&, void)
             m_xMacroBox->append_text(macro.second->GetName());
         m_xMacroBox->thaw();
 
-        if (m_xMacroBox->n_children())
-        {
-            m_xMacroBox->get_iter_first(*m_xMacroBoxIter);
+        if (m_xMacroBox->get_iter_first(*m_xMacroBoxIter))
             m_xMacroBox->set_cursor(*m_xMacroBoxIter);
-        }
     }
 
     UpdateFields();


More information about the Libreoffice-commits mailing list