summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/region.cxx
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-04-11 00:21:40 -0300
committerDavid Tardon <dtardon@redhat.com>2013-04-20 11:09:54 +0000
commit0f200cc30ea75fdce59f7bb6ae87ebc85729e2a4 (patch)
tree2e2c28f9500f81825cdadcbabd131da767ddbb49 /vcl/source/gdi/region.cxx
parent5414a3eecdb09be928313477792acfe1d3534645 (diff)
fdo#63154: Change Min/Max/Abs for std::min/max/abs
Now all these usages were removed from LO. Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6 Reviewed-on: https://gerrit.libreoffice.org/3326 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'vcl/source/gdi/region.cxx')
-rw-r--r--vcl/source/gdi/region.cxx44
1 files changed, 22 insertions, 22 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index e359f59a1678..5b149a061a47 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -1142,10 +1142,10 @@ void Region::ImplCreateRectRegion( const Rectangle& rRect )
else
{
// get justified rectangle
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nRight = Max( rRect.Left(), rRect.Right() );
+ long nTop = std::min( rRect.Top(), rRect.Bottom() );
+ long nBottom = std::max( rRect.Top(), rRect.Bottom() );
+ long nLeft = std::min( rRect.Left(), rRect.Right() );
+ long nRight = std::max( rRect.Left(), rRect.Right() );
// create instance of implementation class
mpImplRegion = new ImplRegion();
@@ -1378,10 +1378,10 @@ void Region::Union( const Rectangle& rRect )
ImplCopyData();
// get justified rectangle
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nRight = Max( rRect.Left(), rRect.Right() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = std::min( rRect.Left(), rRect.Right() );
+ long nTop = std::min( rRect.Top(), rRect.Bottom() );
+ long nRight = std::max( rRect.Left(), rRect.Right() );
+ long nBottom = std::max( rRect.Top(), rRect.Bottom() );
// insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
@@ -1480,10 +1480,10 @@ void Region::Intersect( const Rectangle& rRect )
return;
// get justified rectangle
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nRight = Max( rRect.Left(), rRect.Right() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = std::min( rRect.Left(), rRect.Right() );
+ long nTop = std::min( rRect.Top(), rRect.Bottom() );
+ long nRight = std::max( rRect.Left(), rRect.Right() );
+ long nBottom = std::max( rRect.Top(), rRect.Bottom() );
// is own region NULL-region? -> copy data!
if ( mpImplRegion == &aImplNullRegion )
@@ -1583,10 +1583,10 @@ void Region::Exclude( const Rectangle& rRect )
ImplCopyData();
// get justified rectangle
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nRight = Max( rRect.Left(), rRect.Right() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = std::min( rRect.Left(), rRect.Right() );
+ long nTop = std::min( rRect.Top(), rRect.Bottom() );
+ long nRight = std::max( rRect.Left(), rRect.Right() );
+ long nBottom = std::max( rRect.Top(), rRect.Bottom() );
// insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
@@ -1645,10 +1645,10 @@ void Region::XOr( const Rectangle& rRect )
ImplCopyData();
// get justified rectangle
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nRight = Max( rRect.Left(), rRect.Right() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = std::min( rRect.Left(), rRect.Right() );
+ long nTop = std::min( rRect.Top(), rRect.Bottom() );
+ long nRight = std::max( rRect.Left(), rRect.Right() );
+ long nBottom = std::max( rRect.Top(), rRect.Bottom() );
// insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
@@ -2091,8 +2091,8 @@ Rectangle Region::GetBoundRect() const
while ( pBand )
{
nYBottom = pBand->mnYBottom;
- nXLeft = Min( nXLeft, pBand->GetXLeftBoundary() );
- nXRight = Max( nXRight, pBand->GetXRightBoundary() );
+ nXLeft = std::min( nXLeft, pBand->GetXLeftBoundary() );
+ nXRight = std::max( nXRight, pBand->GetXRightBoundary() );
pBand = pBand->mpNextBand;
}