Kaydet (Commit) 871e6868 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Better fix not causing unrelated loplugin:loopvartoosmall

...for e7aab255 "warning C4018: '<' :
signed/unsigned mismatch"

Change-Id: I9a91244f2136e2cd31c480511e3b08c721b478e4
üst 8d6afde1
...@@ -408,7 +408,7 @@ bool SdDrawDocument::InsertBookmarkAsPage( ...@@ -408,7 +408,7 @@ bool SdDrawDocument::InsertBookmarkAsPage(
} }
const sal_uInt16 nSdPageCount = GetSdPageCount(PageKind::Standard); const sal_uInt16 nSdPageCount = GetSdPageCount(PageKind::Standard);
const sal_uInt32 nBMSdPageCount = pBookmarkDoc->GetSdPageCount(PageKind::Standard); const sal_uInt16 nBMSdPageCount = pBookmarkDoc->GetSdPageCount(PageKind::Standard);
const sal_uInt16 nMPageCount = GetMasterPageCount(); const sal_uInt16 nMPageCount = GetMasterPageCount();
if (nSdPageCount==0 || nBMSdPageCount==0 || nMPageCount==0) if (nSdPageCount==0 || nBMSdPageCount==0 || nMPageCount==0)
...@@ -932,7 +932,7 @@ bool SdDrawDocument::InsertBookmarkAsPage( ...@@ -932,7 +932,7 @@ bool SdDrawDocument::InsertBookmarkAsPage(
{ {
try try
{ {
for(sal_uInt32 p = nInsertPos; p < (nInsertPos + nBMSdPageCount); p++) for(sal_uInt32 p = nInsertPos; p < sal_uInt32(nInsertPos) + sal_uInt32(nBMSdPageCount); p++)
{ {
SdPage *pPg = static_cast<SdPage *>( GetPage(p) ); SdPage *pPg = static_cast<SdPage *>( GetPage(p) );
for(size_t i = 0; pPg && (i < pPg->GetObjCount()); ++i) for(size_t i = 0; pPg && (i < pPg->GetObjCount()); ++i)
......
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