diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-17 17:23:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-17 17:23:21 +0200 |
commit | 5e790f691add9e44b8ab558f5f0aae488ad71b6e (patch) | |
tree | caf6451eaf4cc4c9cf05e9d0360453e57305af68 /shell/source/win32 | |
parent | f47e2f3b49e6aa6411db4daf62fcd3679f6cef78 (diff) |
loplugin:unnecessaryparen: shell (clang-cl)
Change-Id: If038a119b0b01bff9f452bb66e855e35c10d06eb
Diffstat (limited to 'shell/source/win32')
-rw-r--r-- | shell/source/win32/shlxthandler/classfactory.cxx | 2 | ||||
-rw-r--r-- | shell/source/win32/simplemail/senddoc.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
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++; |