sw/source/core/text/txtfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cb7153403a55a0e565584aedd8a4dc8da149b08c
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sat Nov 26 00:21:57 2022 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sat Nov 26 07:07:37 2022 +0100

    Unneeded const_cast
    
    Change-Id: I135498592857a624b72db519724e8f189e60e9a3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143310
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx
index 29e98cfca5b9..8db5779293d3 100644
--- a/sw/source/core/text/txtfrm.cxx
+++ b/sw/source/core/text/txtfrm.cxx
@@ -1259,7 +1259,7 @@ TextFrameIndex SwTextFrame::MapModelToView(SwTextNode 
const*const pNode, sal_Int
     }
     else
     {
-        
assert(static_cast<SwTextNode*>(const_cast<sw::BroadcastingModify*>(SwFrame::GetDep()))
 == pNode);
+        assert(static_cast<const SwTextNode*>(SwFrame::GetDep()) == pNode);
         return TextFrameIndex(nIndex);
     }
 }

Reply via email to