[Libreoffice-commits] core.git: vcl/unx

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jul 23 11:09:04 UTC 2018


 vcl/unx/kde5/KDE5SalGraphics.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8ab0f9f3aa3abd84c70d84613dd0412d84fd8f92
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Jul 23 13:08:39 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Jul 23 13:08:39 2018 +0200

    loplugin:unnecessaryparen
    
    Change-Id: Ie28001cf1eb5259f479caecdfb50355f98b80b7f

diff --git a/vcl/unx/kde5/KDE5SalGraphics.cxx b/vcl/unx/kde5/KDE5SalGraphics.cxx
index f26e559b921e..0c1aeb48c5a8 100644
--- a/vcl/unx/kde5/KDE5SalGraphics.cxx
+++ b/vcl/unx/kde5/KDE5SalGraphics.cxx
@@ -469,7 +469,7 @@ bool KDE5SalGraphics::drawNativeControl(ControlType type, ControlPart part,
         {
             QStyleOptionButton option;
             // clear FOCUSED bit, focus is drawn separately
-            nControlState &= ~(ControlState::FOCUSED);
+            nControlState &= ~ControlState::FOCUSED;
             draw(QStyle::CE_CheckBox, &option, m_image.get(),
                  vclStateValue2StateFlag(nControlState, value));
         }
@@ -551,7 +551,7 @@ bool KDE5SalGraphics::drawNativeControl(ControlType type, ControlPart part,
         {
             QStyleOptionButton option;
             // clear FOCUSED bit, focus is drawn separately
-            nControlState &= ~(ControlState::FOCUSED);
+            nControlState &= ~ControlState::FOCUSED;
             draw(QStyle::CE_RadioButton, &option, m_image.get(),
                  vclStateValue2StateFlag(nControlState, value));
         }


More information about the Libreoffice-commits mailing list