summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdpntv.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-06 11:05:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-08 07:20:29 +0100
commit5c23459245f566831383934dd64d19e002bfcfcb (patch)
tree27d92a2167c6245c3be7844e2bbe7b6e624f0f9e /svx/source/svdraw/svdpntv.cxx
parent4a7771ffa8d98d08dffbba90fd42d1ab75e056fe (diff)
new loplugin constvars
detect static variables that can be made const. Thanks to mike kaganski for suggesting this. Here I introduce a new plugin feature - using markers in nearby comments to disable the plugin for specific vars. Some of this stuff was old debugging code. I removed the stuff that was older than 5 years. Change-Id: I6ec7742a7fdadf28fd128b592fcdf6da8257585c Reviewed-on: https://gerrit.libreoffice.org/68807 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdpntv.cxx')
-rw-r--r--svx/source/svdraw/svdpntv.cxx31
1 files changed, 0 insertions, 31 deletions
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 967215a3822b..f799c3b098cf 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -553,37 +553,6 @@ void SdrPaintView::CompleteRedraw(OutputDevice* pOut, const vcl::Region& rReg, s
if(!pWindow->GetPaintRegion().IsEmpty())
{
aOptimizedRepaintRegion.Intersect(pWindow->GetPaintRegion());
-
-#ifdef DBG_UTIL
- // #i74769# test-paint repaint region
- static bool bDoPaintForVisualControl(false);
-
- if(bDoPaintForVisualControl)
- {
- RectangleVector aRectangles;
- aOptimizedRepaintRegion.GetRegionRectangles(aRectangles);
-
- pWindow->SetLineColor(COL_LIGHTGREEN);
- pWindow->SetFillColor();
-
- for(const auto& rRect : aRectangles)
- {
- pWindow->DrawRect(rRect);
- }
-
- //RegionHandle aRegionHandle(aOptimizedRepaintRegion.BeginEnumRects());
- //Rectangle aRegionRectangle;
-
- //while(aOptimizedRepaintRegion.GetEnumRects(aRegionHandle, aRegionRectangle))
- //{
- // pWindow->SetLineCOL_LIGHTGREEN);
- // pWindow->SetFillColor();
- // pWindow->DrawRect(aRegionRectangle);
- //}
-
- //aOptimizedRepaintRegion.EndEnumRects(aRegionHandle);
- }
-#endif
}
}
}