summaryrefslogtreecommitdiff
path: root/vcl/win/gdi
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-27 15:02:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-27 21:06:21 +0100
commit2eb0cadf0395c60198e36307222de3dd1e7729a6 (patch)
tree13de18915f50783714a90545bcae7480ddcfc978 /vcl/win/gdi
parentc056f4ade7efec94d2cdc19c184486d834638df2 (diff)
loplugin:unnecessaryparen (clang-cl)
Change-Id: I5452235287fd5986de25ee542edd57bf1abded52 Reviewed-on: https://gerrit.libreoffice.org/45338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r--vcl/win/gdi/salnativewidgets-luna.cxx4
-rw-r--r--vcl/win/gdi/salprn.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/gdi/salnativewidgets-luna.cxx b/vcl/win/gdi/salnativewidgets-luna.cxx
index 73e780ca1584..864e6041d48c 100644
--- a/vcl/win/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/gdi/salnativewidgets-luna.cxx
@@ -1075,7 +1075,7 @@ bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
}
else if( nPart == ControlPart::MenuItem )
{
- if( (nState & ControlState::ENABLED) )
+ if( nState & ControlState::ENABLED )
iState = (nState & ControlState::SELECTED) ? MPI_HOT : MPI_NORMAL;
else
iState = (nState & ControlState::SELECTED) ? MPI_DISABLEDHOT : MPI_DISABLED;
@@ -1083,7 +1083,7 @@ bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
}
else if( nPart == ControlPart::MenuItemCheckMark || nPart == ControlPart::MenuItemRadioMark )
{
- if( (nState & ControlState::PRESSED) )
+ if( nState & ControlState::PRESSED )
{
RECT aBGRect = rc;
if( aValue.getType() == ControlType::MenuPopup )
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx
index a961bbf4ace2..d107a90717ff 100644
--- a/vcl/win/gdi/salprn.cxx
+++ b/vcl/win/gdi/salprn.cxx
@@ -973,7 +973,7 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter const * pPrinter, const Imp
}
}
}
- if( (nFlags & JobSetFlags::DUPLEXMODE) )
+ if( nFlags & JobSetFlags::DUPLEXMODE )
{
switch( pSetupData->GetDuplexMode() )
{