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

Stephan Bergmann sbergman at redhat.com
Tue May 26 00:25:56 PDT 2015


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

New commits:
commit efc8510ca900153442b329ec318f28cddd826757
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue May 26 09:24:57 2015 +0200

    loplugin:redundantcast
    
    Change-Id: Id30d771b85716ab9c51e4c8fde36ad397ab44678

diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx
index ef7bab4..5b6271e 100644
--- a/sw/source/core/doc/CntntIdxStore.cxx
+++ b/sw/source/core/doc/CntntIdxStore.cxx
@@ -384,7 +384,7 @@ void ContentIdxStoreImpl::SaveUnoCrsrs(SwDoc* pDoc, sal_uLong nNode, sal_Int32 n
         auto pUnoCrsr(pWeakUnoCrsr.lock());
         if(!pUnoCrsr)
             continue;
-        for(SwPaM& rPaM : (const_cast<SwUnoCrsr*>(pUnoCrsr.get()))->GetRingContainer())
+        for(SwPaM& rPaM : pUnoCrsr.get()->GetRingContainer())
         {
             lcl_ChkPaMBoth( m_aUnoCrsrEntries, nNode, nContent, rPaM);
         }


More information about the Libreoffice-commits mailing list