diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-23 08:13:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-23 10:00:44 +0100 |
commit | b26012ef159bd420ac3bb9275607d3a1622422f7 (patch) | |
tree | e39d6e31122a22d7c0c27336410acaafe71c4fcf /cppcanvas | |
parent | bfaf5740bb10ce8c51017cba44681de10953bea4 (diff) |
Make loplugin:unnecessaryparen look through implicit
...similar to how <https://gerrit.libreoffice.org/#/c/45083/2> "Make not warning
about !! in loplugin:simplifybool consistent" does for loplugin:simplifybool
Change-Id: I23eef400af71c582d380c9bae6546ce06e8a1e18
Reviewed-on: https://gerrit.libreoffice.org/45122
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 6804b121fd7f..b71b34ddd8b8 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -286,19 +286,19 @@ namespace cppcanvas const OutDevState& rNewState( getState() ); - if( (aCalculatedNewState.pushFlags & PushFlags::LINECOLOR) ) + if( aCalculatedNewState.pushFlags & PushFlags::LINECOLOR ) { aCalculatedNewState.lineColor = rNewState.lineColor; aCalculatedNewState.isLineColorSet = rNewState.isLineColorSet; } - if( (aCalculatedNewState.pushFlags & PushFlags::FILLCOLOR) ) + if( aCalculatedNewState.pushFlags & PushFlags::FILLCOLOR ) { aCalculatedNewState.fillColor = rNewState.fillColor; aCalculatedNewState.isFillColorSet = rNewState.isFillColorSet; } - if( (aCalculatedNewState.pushFlags & PushFlags::FONT) ) + if( aCalculatedNewState.pushFlags & PushFlags::FONT ) { aCalculatedNewState.xFont = rNewState.xFont; aCalculatedNewState.fontRotation = rNewState.fontRotation; @@ -312,17 +312,17 @@ namespace cppcanvas aCalculatedNewState.isTextOutlineModeSet = rNewState.isTextOutlineModeSet; } - if( (aCalculatedNewState.pushFlags & PushFlags::TEXTCOLOR) ) + if( aCalculatedNewState.pushFlags & PushFlags::TEXTCOLOR ) { aCalculatedNewState.textColor = rNewState.textColor; } - if( (aCalculatedNewState.pushFlags & PushFlags::MAPMODE) ) + if( aCalculatedNewState.pushFlags & PushFlags::MAPMODE ) { aCalculatedNewState.mapModeTransform = rNewState.mapModeTransform; } - if( (aCalculatedNewState.pushFlags & PushFlags::CLIPREGION) ) + if( aCalculatedNewState.pushFlags & PushFlags::CLIPREGION ) { aCalculatedNewState.clip = rNewState.clip; aCalculatedNewState.clipRect = rNewState.clipRect; @@ -334,13 +334,13 @@ namespace cppcanvas // { // } - if( (aCalculatedNewState.pushFlags & PushFlags::TEXTFILLCOLOR) ) + if( aCalculatedNewState.pushFlags & PushFlags::TEXTFILLCOLOR ) { aCalculatedNewState.textFillColor = rNewState.textFillColor; aCalculatedNewState.isTextFillColorSet = rNewState.isTextFillColorSet; } - if( (aCalculatedNewState.pushFlags & PushFlags::TEXTALIGN) ) + if( aCalculatedNewState.pushFlags & PushFlags::TEXTALIGN ) { aCalculatedNewState.textReferencePoint = rNewState.textReferencePoint; } @@ -350,13 +350,13 @@ namespace cppcanvas // { // } - if( (aCalculatedNewState.pushFlags & PushFlags::TEXTLINECOLOR) ) + if( aCalculatedNewState.pushFlags & PushFlags::TEXTLINECOLOR ) { aCalculatedNewState.textLineColor = rNewState.textLineColor; aCalculatedNewState.isTextLineColorSet = rNewState.isTextLineColorSet; } - if( (aCalculatedNewState.pushFlags & PushFlags::TEXTLAYOUTMODE) ) + if( aCalculatedNewState.pushFlags & PushFlags::TEXTLAYOUTMODE ) { aCalculatedNewState.textAlignment = rNewState.textAlignment; aCalculatedNewState.textDirection = rNewState.textDirection; |