diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-05 13:44:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-06 06:47:06 +0100 |
commit | a2e3705d8b3b05ae664d54b762d6ff72927d5e48 (patch) | |
tree | 6ac31f9c9b419b12dbf065845a6941c143f57e2c /sal | |
parent | f423ac2d3bdba4263f1f41e31e7e2b7715afdd6e (diff) |
loplugin:unnecessaryparen improve member expression
Change-Id: I304621018cb1e2a47e478e86df4229bcf2176741
Reviewed-on: https://gerrit.libreoffice.org/68757
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/file.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/module/osl_Module.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index 305a57a27034..1f04802aa9e6 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -389,7 +389,7 @@ oslFileError FileHandle_Impl::readFileAt( return osl_File_E_None; } - if (m_kind == KIND_MEM || !(m_buffer)) + if (m_kind == KIND_MEM || !m_buffer) { // not buffered return readAt(nOffset, pBuffer, nBytesRequested, pBytesRead); diff --git a/sal/qa/osl/module/osl_Module.cxx b/sal/qa/osl/module/osl_Module.cxx index 65be1ffacab1..52112cb9f151 100644 --- a/sal/qa/osl/module/osl_Module.cxx +++ b/sal/qa/osl/module/osl_Module.cxx @@ -83,7 +83,7 @@ namespace osl_Module &osl_Module::testClass::myFunc), aFileURL); - if ( !( bRes ) ) + if ( !bRes ) { CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", false ); } @@ -117,7 +117,7 @@ namespace osl_Module reinterpret_cast<oslGenericFunction>( &osl_Module::testClass::myFunc), aFileURL); - if ( !( bRes ) ) + if ( !bRes ) { CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", false ); } @@ -138,7 +138,7 @@ namespace osl_Module OUString aFileURL; bRes = osl::Module::getUrlFromAddress( reinterpret_cast<oslGenericFunction>(pFunc), aFileURL); - if ( !( bRes ) ) + if ( !bRes ) { CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", false ); } @@ -228,7 +228,7 @@ namespace osl_Module reinterpret_cast<oslGenericFunction>( osl_Module::testClass::myFunc), aFileURL); - if ( !( bRes ) ) + if ( !bRes ) { CPPUNIT_ASSERT_MESSAGE("Cannot locate current module - using executable instead", false ); } |