From 5aadf3ce06f76b07290a8ae2fedb54386c825935 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Thu, 12 Jun 2014 19:40:58 +0200 Subject: still ugly, but lets silent the warning for now Change-Id: I647e969bfc9f8b4294d3e526d8d5b11df7d7bea9 --- sw/source/core/doc/docbm.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index ba4fa52d9799..39abcd68a995 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -1793,7 +1793,6 @@ void _RestoreCntntIdx(std::vector &rSaveArr, sal_Int32 nChkLen) { const SwDoc* pDoc = rNd.GetDoc(); - const SwRedlineTbl& rRedlTbl = pDoc->GetRedlineTbl(); const SwFrmFmts* pSpz = pDoc->GetSpzFrmFmts(); SwCntntNode* pCNd = (SwCntntNode*)rNd.GetCntntNode(); @@ -2058,7 +2057,7 @@ void CntntIdxStoreImpl::RestoreBkmksLen(SwNode& rNd, sal_uLong nLen, sal_Int32 n void CntntIdxStoreImpl::SaveRedlines(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nCntnt) { const SwRedlineTbl& rRedlTbl = pDoc->GetRedlineTbl(); - for( long int nIdx = 0 ; nIdx < rRedlTbl.size(); ++nIdx ) + for( long int nIdx = 0 ; static_cast(nIdx) < rRedlTbl.size(); ++nIdx ) { const SwRangeRedline* pRdl = rRedlTbl[ nIdx ]; int nPointPos = lcl_RelativePosition( *pRdl->GetPoint(), nNode, nCntnt ); -- cgit