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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 6 20:12:35 UTC 2020


 sw/source/uibase/utlui/content.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 530d4cfa3ce3d1276305da4dc578890abba065cb
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Fri Mar 6 17:17:22 2020 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Mar 6 21:12:00 2020 +0100

    Remove useless cast.
    
    Change-Id: I256c7a2257dd74b5650854f0231615353b43dcdb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90119
    Tested-by: Jenkins
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index e220797c38fe..250b588a00b0 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -541,7 +541,7 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged)
             size_t nPos = 0;
             for (size_t i = 0; i < nOutlineCount; ++i)
             {
-                const sal_Int8 nLevel = static_cast<sal_Int8>(m_pWrtShell->getIDocumentOutlineNodesAccess()->getOutlineLevel(i));
+                const sal_uInt8 nLevel = m_pWrtShell->getIDocumentOutlineNodesAccess()->getOutlineLevel(i);
                 if(nLevel >= m_nOutlineLevel )
                     m_nMemberCount--;
                 else


More information about the Libreoffice-commits mailing list