Kaydet (Commit) f0d05ed0 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to size_t

Change-Id: I03d205d8c11be7e5b5aca3c711dd26e52f174fff
üst 88c397aa
......@@ -1032,14 +1032,14 @@ static void lcl_FillRedlineArray(
SwXRedlinePortion_ImplList& rRedArr )
{
const SwRedlineTbl& rRedTbl = rDoc.GetRedlineTbl();
sal_uInt16 nRedTblCount = rRedTbl.size();
const size_t nRedTblCount = rRedTbl.size();
if ( nRedTblCount > 0 )
{
const SwPosition* pStart = rUnoCrsr.GetPoint();
const SwNodeIndex nOwnNode = pStart->nNode;
for(sal_uInt16 nRed = 0; nRed < nRedTblCount; nRed++)
for(size_t nRed = 0; nRed < nRedTblCount; ++nRed)
{
const SwRangeRedline* pRedline = rRedTbl[nRed];
const SwPosition* pRedStart = pRedline->Start();
......
......@@ -278,7 +278,7 @@ void SwXRedlinePortion::Validate() throw( uno::RuntimeException )
SwDoc* pDoc = pUnoCrsr->GetDoc();
const SwRedlineTbl& rRedTbl = pDoc->GetRedlineTbl();
bool bFound = false;
for(sal_uInt16 nRed = 0; nRed < rRedTbl.size() && !bFound; nRed++)
for(size_t nRed = 0; nRed < rRedTbl.size() && !bFound; nRed++)
bFound = &m_rRedline == rRedTbl[nRed];
if(!bFound)
throw uno::RuntimeException();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment