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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon May 17 08:34:24 UTC 2021


 sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cfb9fb3c8ab861e53306f1a2362784446abe903a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun May 16 20:38:21 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon May 17 10:33:47 2021 +0200

    cid#1465676 Unchecked return value
    
    presumably unchecked return is ok in this case
    
    Change-Id: I2aee2714e924d496ea54b2b02019dd12becc1c71
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115685
    Tested-by: Jenkins
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx b/sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx
index d511812f4278..23e836a96a24 100644
--- a/sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx
+++ b/sw/source/uibase/docvw/OutlineContentVisibilityWin.cxx
@@ -111,8 +111,8 @@ void SwOutlineContentVisibilityWin::Set()
     SwWrtShell& rSh = GetEditWin()->GetView().GetWrtShell();
     const SwOutlineNodes& rOutlineNodes = rSh.GetNodes().GetOutLineNds();
 
-    rOutlineNodes.Seek_Entry(static_cast<SwNode*>(const_cast<SwTextNode*>(pTextNode)),
-                             &m_nOutlinePos);
+    (void)rOutlineNodes.Seek_Entry(static_cast<SwNode*>(const_cast<SwTextNode*>(pTextNode)),
+                                   &m_nOutlinePos);
 
     // set symbol displayed on button
     bool bVisible = true;


More information about the Libreoffice-commits mailing list