diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-18 16:03:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-18 16:03:13 +0000 |
commit | 620156f516db5f20cd97bcf962934e51f28b4d40 (patch) | |
tree | 9d83cafb8a8d5034fd86887e01812309b26e49a7 /sw | |
parent | 0dd7a5a27c48db5fb9b89ed794da96deda516594 (diff) |
gcc 4.8.3 lets us do it, but not everyone else
Change-Id: I83cca6a1bd3a462a277e5f5338cafbcd037d4227
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 62 |
1 files changed, 43 insertions, 19 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 1a86ce297e38..0dc99f5a3ac7 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -239,44 +239,68 @@ Color aGlobalRetoucheColor; struct SwPaintProperties { // Only repaint the Fly content as well as the background of the Fly content if // a metafile is taken of the Fly. - bool bSFlyMetafile = false; - OutputDevice *pSFlyMetafileOut = 0; - SwViewShell *pSGlobalShell = 0; + bool bSFlyMetafile; + OutputDevice *pSFlyMetafileOut; + SwViewShell *pSGlobalShell; // Retouch for transparent Flys is done by the background of the Flys. // The Fly itself should certainly not be spared out. See PaintBackground and // lcl_SubtractFlys() - SwFlyFrm *pSRetoucheFly = 0; - SwFlyFrm *pSRetoucheFly2 = 0; - SwFlyFrm *pSFlyOnlyDraw = 0; + SwFlyFrm *pSRetoucheFly; + SwFlyFrm *pSRetoucheFly2; + SwFlyFrm *pSFlyOnlyDraw; // The borders will be collected in pSLines during the Paint and later // possibly merge them. // The help lines will be collected and merged in gProp.pSSubsLines. These will // be compared with pSLines before the work in order to avoid help lines // to hide borders. - BorderLines *pBLines = 0; - SwLineRects *pSLines = 0; - SwSubsRects *pSSubsLines = 0; + BorderLines *pBLines; + SwLineRects *pSLines; + SwSubsRects *pSSubsLines; // global variable for sub-lines of body, header, footer, section and footnote frames. - SwSubsRects *pSSpecSubsLines = 0; - SfxProgress *pSProgress = 0; + SwSubsRects *pSSpecSubsLines; + SfxProgress *pSProgress; // Sizes of a pixel and the corresponding halves. Will be reset when // entering SwRootFrm::Paint - long nSPixelSzW = 0; - long nSPixelSzH = 0; - long nSHalfPixelSzW = 0; - long nSHalfPixelSzH = 0; - long nSMinDistPixelW = 0; - long nSMinDistPixelH = 0; + long nSPixelSzW; + long nSPixelSzH; + long nSHalfPixelSzW; + long nSHalfPixelSzH; + long nSMinDistPixelW; + long nSMinDistPixelH; Color aSGlobalRetoucheColor; // Current zoom factor - double aSScaleX = 1; - double aSScaleY = 1; + double aSScaleX; + double aSScaleY; + + SwPaintProperties() + : bSFlyMetafile(false) + , pSFlyMetafileOut(0) + , pSGlobalShell(0) + , pSRetoucheFly(0) + , pSRetoucheFly2(0) + , pSFlyOnlyDraw(0) + , pBLines(0) + , pSLines(0) + , pSSubsLines(0) + , pSSpecSubsLines(0) + , pSProgress(0) + , nSPixelSzW(0) + , nSPixelSzH(0) + , nSHalfPixelSzW(0) + , nSHalfPixelSzH(0) + , nSMinDistPixelW(0) + , nSMinDistPixelH(0) + , aSScaleX(1) + , aSScaleY(1) + { + } + }; static SwPaintProperties gProp; |