[Libreoffice-commits] core.git: shell/source

Stephan Bergmann sbergman at redhat.com
Mon Jul 17 15:24:15 UTC 2017


 shell/source/win32/shlxthandler/classfactory.cxx |    2 +-
 shell/source/win32/simplemail/senddoc.cxx        |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 5e790f691add9e44b8ab558f5f0aae488ad71b6e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jul 17 17:23:21 2017 +0200

    loplugin:unnecessaryparen: shell (clang-cl)
    
    Change-Id: If038a119b0b01bff9f452bb66e855e35c10d06eb

diff --git a/shell/source/win32/shlxthandler/classfactory.cxx b/shell/source/win32/shlxthandler/classfactory.cxx
index 3f2640c04dd7..80dfad61b26c 100644
--- a/shell/source/win32/shlxthandler/classfactory.cxx
+++ b/shell/source/win32/shlxthandler/classfactory.cxx
@@ -87,7 +87,7 @@ HRESULT STDMETHODCALLTYPE CClassFactory::CreateInstance(
             REFIID riid,
             void __RPC_FAR *__RPC_FAR *ppvObject)
 {
-    if ((pUnkOuter != nullptr))
+    if (pUnkOuter != nullptr)
         return CLASS_E_NOAGGREGATION;
 
     IUnknown* pUnk = nullptr;
diff --git a/shell/source/win32/simplemail/senddoc.cxx b/shell/source/win32/simplemail/senddoc.cxx
index bd78f26e5635..b911a3b9cc5b 100644
--- a/shell/source/win32/simplemail/senddoc.cxx
+++ b/shell/source/win32/simplemail/senddoc.cxx
@@ -206,11 +206,11 @@ void initParameter(int argc, char* argv[])
             continue;
         }
 
-        if ((_stricmp(argv[i], "--mapi-dialog") == 0))
+        if (_stricmp(argv[i], "--mapi-dialog") == 0)
         {
             gMapiFlags |= MAPI_DIALOG;
         }
-        else if ((_stricmp(argv[i], "--mapi-logon-ui") == 0))
+        else if (_stricmp(argv[i], "--mapi-logon-ui") == 0)
         {
             gMapiFlags |= MAPI_LOGON_UI;
         }
@@ -228,7 +228,7 @@ void initParameter(int argc, char* argv[])
                 gSubject = argv[i+1];
             else if (_stricmp(argv[i], "--body") == 0)
                 gBody = argv[i+1];
-            else if ((_stricmp(argv[i], "--attach") == 0))
+            else if (_stricmp(argv[i], "--attach") == 0)
                 gAttachments.push_back(argv[i+1]);
 
             i++;


More information about the Libreoffice-commits mailing list