From ef46917ff3163d3fdd5152bda5d16c4503b6ab69 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sun, 16 Aug 2015 16:45:12 -0500 Subject: Put Polygon from tools under tools:: namespace Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins Reviewed-by: Norbert Thiebaud --- vcl/source/control/button.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/source/control/button.cxx') diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index dadb241fa25d..0157b7ddd589 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -2500,11 +2500,11 @@ void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize pDev->SetLineColor(); pDev->SetFillColor( Color( COL_BLACK ) ); - pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); + pDev->DrawPolygon( tools::Polygon( aCenterPos, nRadX, nRadY ) ); nRadX -= aBrd1Size.Width(); nRadY -= aBrd1Size.Height(); pDev->SetFillColor( Color( COL_WHITE ) ); - pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); + pDev->DrawPolygon( tools::Polygon( aCenterPos, nRadX, nRadY ) ); if ( mbChecked ) { nRadX -= aBrd1Size.Width(); @@ -2514,7 +2514,7 @@ void RadioButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize if ( !nRadY ) nRadY = 1; pDev->SetFillColor( Color( COL_BLACK ) ); - pDev->DrawPolygon( Polygon( aCenterPos, nRadX, nRadY ) ); + pDev->DrawPolygon( tools::Polygon( aCenterPos, nRadX, nRadY ) ); } pDev->Pop(); -- cgit