diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-06-12 19:40:58 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-06-25 16:00:32 +0200 |
commit | 5aadf3ce06f76b07290a8ae2fedb54386c825935 (patch) | |
tree | fb8b09f662de24e488d9394a59b289f925aede5f /sw | |
parent | ba327f6b86d17499725f344972151fbfb6be6938 (diff) |
still ugly, but lets silent the warning for now
Change-Id: I647e969bfc9f8b4294d3e526d8d5b11df7d7bea9
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 3 |
1 files changed, 1 insertions, 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<sal_uLong> &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<unsigned long int>(nIdx) < rRedlTbl.size(); ++nIdx ) { const SwRangeRedline* pRdl = rRedlTbl[ nIdx ]; int nPointPos = lcl_RelativePosition( *pRdl->GetPoint(), nNode, nCntnt ); |