summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-11-05 13:16:50 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-10 07:31:04 +0000
commit08337202b175b8ccf4bd1336abad5d817b006213 (patch)
treefdd812e6393fc1dbe4739dbe0d72f50f0fcbe9e7 /vcl
parentf318e585265fe5b863bd9927f5aad415ba060173 (diff)
compilerplugins: enhance "badstatics" plugin to find members
Finds static variables of types that have bad non-static members. (cherry picked from commit 10afa00c8ce4f0de9191cd182409a3a5d8e55bb8) Omit the actual compiler plugin, just the fix for the release branch. Change-Id: I81ee940580c0f043feb543840ea4d3dd27734202 Reviewed-on: https://gerrit.libreoffice.org/19829 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx5
-rw-r--r--vcl/source/filter/wmf/winmtf.hxx1
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index 3f54ae84368d..513751d0a75b 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -944,12 +944,11 @@ sal_uInt32 WinMtfOutput::SetRasterOp( sal_uInt32 nRasterOp )
if ( nRasterOp != mnRop )
{
mnRop = nRasterOp;
- static WinMtfFillStyle aNopFillStyle;
static WinMtfLineStyle aNopLineStyle;
if ( mbNopMode && ( nRasterOp != R2_NOP ) )
{ // changing modes from R2_NOP so set pen and brush
- maFillStyle = aNopFillStyle;
+ maFillStyle = m_NopFillStyle;
maLineStyle = aNopLineStyle;
mbNopMode = false;
}
@@ -968,7 +967,7 @@ sal_uInt32 WinMtfOutput::SetRasterOp( sal_uInt32 nRasterOp )
meRasterOp = ROP_OVERPAINT;
if( !mbNopMode )
{
- aNopFillStyle = maFillStyle;
+ m_NopFillStyle = maFillStyle;
aNopLineStyle = maLineStyle;
maFillStyle = WinMtfFillStyle( Color( COL_TRANSPARENT ), true );
maLineStyle = WinMtfLineStyle( Color( COL_TRANSPARENT ), true );
diff --git a/vcl/source/filter/wmf/winmtf.hxx b/vcl/source/filter/wmf/winmtf.hxx
index d50fb3788e18..3b78821bad43 100644
--- a/vcl/source/filter/wmf/winmtf.hxx
+++ b/vcl/source/filter/wmf/winmtf.hxx
@@ -545,6 +545,7 @@ class WinMtfOutput
WinMtfLineStyle maLineStyle;
WinMtfFillStyle maLatestFillStyle;
WinMtfFillStyle maFillStyle;
+ WinMtfFillStyle m_NopFillStyle;
vcl::Font maLatestFont;
vcl::Font maFont;
sal_uInt32 mnLatestTextAlign;