diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-23 16:06:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-05 09:30:39 +0200 |
commit | b2b85c2b3920fdd92b8d3bf32af1cac5679e116e (patch) | |
tree | 0ecf7184ea242f2e3accf6672662107a09d1ebc2 /vcl/workben/vcldemo.cxx | |
parent | d3b5038cbbe4adf642b3906da111a9f0d2c918a7 (diff) |
loplugin:staticmethods
Change-Id: Idfd6368eba8e638cf9e6adf998b19ccd1f5e876c
Diffstat (limited to 'vcl/workben/vcldemo.cxx')
-rw-r--r-- | vcl/workben/vcldemo.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index eee51b3f1636..db73f57fe3d5 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -167,10 +167,10 @@ public: static std::vector<Rectangle> partition(const RenderContext &rCtx, int nX, int nY) { - return rCtx.mpDemoRenderer->partition(rCtx.maSize, nX, nY); + return DemoRenderer::partition(rCtx.maSize, nX, nY); } - std::vector<Rectangle> partition(Size aSize, int nX, int nY) + static std::vector<Rectangle> partition(Size aSize, int nX, int nY) { Rectangle r; std::vector<Rectangle> aRegions; @@ -210,7 +210,7 @@ public: } } - void drawBackground(OutputDevice &rDev, const Rectangle& r) + static void drawBackground(OutputDevice &rDev, const Rectangle& r) { rDev.Erase(); Gradient aGradient; @@ -353,7 +353,7 @@ public: } } - void drawText (OutputDevice &rDev, Rectangle r, bool bClip, bool bArabicText, bool bRotate) + static void drawText (OutputDevice &rDev, Rectangle r, bool bClip, bool bArabicText, bool bRotate) { rDev.SetClipRegion( vcl::Region(r) ); @@ -638,7 +638,7 @@ public: // Simulate Page Borders rendering - which ultimately should // be done with a shader / gradient - void SimulateBorderStretch(OutputDevice &rDev, const Rectangle& r) + static void SimulateBorderStretch(OutputDevice &rDev, const Rectangle& r) { static BitmapEx aPageShadowMask("sw/res/page-shadow-mask.png"); @@ -771,7 +771,7 @@ public: RENDER_AS_ALPHA_OUTDEV }; - void SizeAndRender(OutputDevice &rDev, const Rectangle& r, RenderType eType, + static void SizeAndRender(OutputDevice &rDev, const Rectangle& r, RenderType eType, const RenderContext &rCtx) { ScopedVclPtr<VirtualDevice> pNested; @@ -941,7 +941,7 @@ public: } } - BitmapEx AlphaRecovery(OutputDevice &rDev, Point aPt, BitmapEx &aSrc) + static BitmapEx AlphaRecovery(OutputDevice &rDev, Point aPt, BitmapEx &aSrc) { // Compositing onto 2x colors beyond our control ScopedVclPtrInstance< VirtualDevice > aWhite; @@ -1557,7 +1557,7 @@ class DemoPopup : public FloatingWindow class DemoApp : public Application { - int showHelp(DemoRenderer &rRenderer) + static int showHelp(DemoRenderer &rRenderer) { fprintf(stderr,"vcldemo - a VCL test app\n"); fprintf(stderr," --help - print this text\n"); |