diff options
-rw-r--r-- | svx/source/svdraw/svdedtv.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 14 | ||||
-rw-r--r-- | svx/source/svdraw/svdxcgv.cxx | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/svx/source/svdraw/svdedtv.cxx b/svx/source/svdraw/svdedtv.cxx index 55d7d31fa64f..7e41af8cf798 100644 --- a/svx/source/svdraw/svdedtv.cxx +++ b/svx/source/svdraw/svdedtv.cxx @@ -207,9 +207,9 @@ void SdrEditView::DeleteLayer(const OUString& rName) for(sal_uInt16 nPageKind(0); nPageKind < 2; nPageKind++) { // MasterPages and DrawPages - sal_uInt16 nPgAnz(bMaPg ? mpModel->GetMasterPageCount() : mpModel->GetPageCount()); + sal_uInt16 nPgCount(bMaPg ? mpModel->GetMasterPageCount() : mpModel->GetPageCount()); - for(sal_uInt16 nPgNum(0); nPgNum < nPgAnz; nPgNum++) + for(sal_uInt16 nPgNum(0); nPgNum < nPgCount; nPgNum++) { // over all pages SdrPage* pPage = (bMaPg) ? mpModel->GetMasterPage(nPgNum) : mpModel->GetPage(nPgNum); diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index 938ce9e60370..5f47639ba74d 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -1816,26 +1816,26 @@ SdrObject* SdrMarkView::PickObj(const Point& rPnt, short nTol, SdrPageView*& rpP if(pPV) { SdrPage* pPage=pPV->GetPage(); - sal_uInt16 nPgAnz=1; + sal_uInt16 nPgCount=1; if(bMasters && pPage->TRG_HasMasterPage()) { - nPgAnz++; + nPgCount++; } bool bExtraPassForWholePage=bWholePage && pPage!=pPV->GetObjList(); - if (bExtraPassForWholePage) nPgAnz++; // First search in AktObjList, then on the entire page - sal_uInt16 nPgNum=bBack ? 0 : nPgAnz; - while (pHitObj==nullptr && (bBack ? nPgNum<nPgAnz : nPgNum>0)) { + if (bExtraPassForWholePage) nPgCount++; // First search in AktObjList, then on the entire page + sal_uInt16 nPgNum=bBack ? 0 : nPgCount; + while (pHitObj==nullptr && (bBack ? nPgNum<nPgCount : nPgNum>0)) { SdrSearchOptions nTmpOptions=nOptions; if (!bBack) nPgNum--; const SdrLayerIDSet* pMVisLay=nullptr; SdrObjList* pObjList=nullptr; if (pbHitPassDirect!=nullptr) *pbHitPassDirect = true; - if (nPgNum>=nPgAnz-1 || (bExtraPassForWholePage && nPgNum>=nPgAnz-2)) + if (nPgNum>=nPgCount-1 || (bExtraPassForWholePage && nPgNum>=nPgCount-2)) { pObjList=pPV->GetObjList(); - if (bExtraPassForWholePage && nPgNum==nPgAnz-2) { + if (bExtraPassForWholePage && nPgNum==nPgCount-2) { pObjList=pPage; if (pbHitPassDirect!=nullptr) *pbHitPassDirect = false; } diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx index f81933b05a95..0d954f6e799c 100644 --- a/svx/source/svdraw/svdxcgv.cxx +++ b/svx/source/svdraw/svdxcgv.cxx @@ -275,8 +275,8 @@ bool SdrExchangeView::Paste( aYResize=aResize.Y(); } SdrObjList* pDstLst=pLst; - sal_uInt16 nPg,nPgAnz=pSrcMod->GetPageCount(); - for (nPg=0; nPg<nPgAnz; nPg++) + sal_uInt16 nPg,nPgCount=pSrcMod->GetPageCount(); + for (nPg=0; nPg<nPgCount; nPg++) { const SdrPage* pSrcPg=pSrcMod->GetPage(nPg); |