diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-18 11:54:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 07:57:49 +0200 |
commit | 265072a4cafd9f8552264448e2fc049ae3ac97e5 (patch) | |
tree | effa65b8c43bedee6493da446840f3114fd2d77f /vcl/workben | |
parent | a22d32644be3fede66558df997e4c75ed96b2fa8 (diff) |
loplugin:staticvar in vcl
Change-Id: I2bdab84dc81e0545aa96542caec213db61765f68
Reviewed-on: https://gerrit.libreoffice.org/61922
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/vcldemo.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 6b2db288d87d..9c83df9ce3b2 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -350,11 +350,11 @@ public: tools::Rectangle aBottom(aToplevelRegions[1].TopLeft(), aToplevelRegions[2].BottomRight()); DemoRenderer::clearRects(rDev,aSubRegions); - struct { + static struct { bool const mbClip; bool const mbArabicText; bool const mbRotate; - } aRenderData[] = { + } const aRenderData[] = { { false, false, false }, { false, true, false }, { false, true, true }, @@ -518,10 +518,10 @@ public: 0xf0, 0x9f, 0x82, 0xa1, 0xc2, 0xa2, 0xc2, 0xa2, 0 }; - struct { + static struct { const char *mpFont; const char *mpString; - } aRuns[] = { + } const aRuns[] = { #define SET(font,string) { font, reinterpret_cast<const char *>(string) } SET("sans", "a"), // logical font - no 'sans' font. SET("opensymbol", "#$%"), // font fallback - $ is missing. @@ -927,9 +927,9 @@ public: virtual void RenderRegion(OutputDevice &rDev, tools::Rectangle r, const RenderContext &) override { - struct { + static struct { double nX, nY; - } aPoints[] = { { 0.1, 0.1 }, { 0.9, 0.9 }, + } const aPoints[] = { { 0.1, 0.1 }, { 0.9, 0.9 }, #if FIXME_SELF_INTERSECTING_WORKING { 0.9, 0.1 }, { 0.1, 0.9 }, { 0.1, 0.1 } |