diff options
-rw-r--r-- | sw/source/core/doc/CntntIdxStore.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index ef7bab416595..5b6271e58465 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); } |