From 917870d2bac4240197a7f5c01a9188cd0eb553ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 29 Sep 2007 12:55:19 +0000 Subject: [PATCH] * slight code style fix, but that file would need a complete cleanup to be style compliant... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22369 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/RegionSupport.cpp | 42 ++++++++++++---------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/src/kits/interface/RegionSupport.cpp b/src/kits/interface/RegionSupport.cpp index 4cc09f1c93..71cf9487a6 100644 --- a/src/kits/interface/RegionSupport.cpp +++ b/src/kits/interface/RegionSupport.cpp @@ -1104,34 +1104,28 @@ BRegion::Support::miRegionOp( *----------------------------------------------------------------------- */ int -BRegion::Support::miUnionNonO ( - register BRegion* pReg, - register clipping_rect* r, - clipping_rect* rEnd, - register int top, - register int bottom) +BRegion::Support::miUnionNonO(register BRegion* pReg, + register clipping_rect* r, clipping_rect* rEnd, + register int top, register int bottom) { - register clipping_rect* pNextRect; + register clipping_rect* pNextRect = &pReg->fData[pReg->fCount]; - pNextRect = &pReg->fData[pReg->fCount]; + assert(top < bottom); - assert(top < bottom); + while (r != rEnd) { + assert(r->left < r->right); + MEMCHECK(pReg, pNextRect, pReg->fData); + pNextRect->left = r->left; + pNextRect->top = top; + pNextRect->right = r->right; + pNextRect->bottom = bottom; + pReg->fCount += 1; + pNextRect++; - while (r != rEnd) - { - assert(r->left < r->right); - MEMCHECK(pReg, pNextRect, pReg->fData); - pNextRect->left = r->left; - pNextRect->top = top; - pNextRect->right = r->right; - pNextRect->bottom = bottom; - pReg->fCount += 1; - pNextRect++; - - assert(pReg->fCount<=pReg->fDataSize); - r++; - } - return 0; /* lint */ + assert(pReg->fCount<=pReg->fDataSize); + r++; + } + return 0; }