summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-05 14:30:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 08:31:30 +0200
commita1ead1a0281a369087f1b2cce09431542c29bece (patch)
treedcc7dd8dc2fee88d4f125a7e1c8dd265b64030d5 /package
parentee96ea7236958a89b60c87f688070412835ead3f (diff)
loplugin unnecessaryparan improvements
Change-Id: I73e945d6ec53537a0da45f6b6291018c7f251a7e Reviewed-on: https://gerrit.libreoffice.org/39587 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/owriteablestream.cxx2
-rw-r--r--package/source/xstor/xfactory.cxx2
-rw-r--r--package/source/xstor/xstorage.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index e072c0b58b8d..2cc0f85f96f8 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -483,7 +483,7 @@ void OWriteStream_Impl::DisposeWrappers()
for ( InputStreamsList_Impl::iterator pStreamIter = m_aInputStreamsList.begin();
pStreamIter != m_aInputStreamsList.end(); ++pStreamIter )
{
- if ( (*pStreamIter) )
+ if ( *pStreamIter )
{
(*pStreamIter)->InternalDispose();
(*pStreamIter) = nullptr;
diff --git a/package/source/xstor/xfactory.cxx b/package/source/xstor/xfactory.cxx
index 24dcc03e5cb3..2747a5c0a8ed 100644
--- a/package/source/xstor/xfactory.cxx
+++ b/package/source/xstor/xfactory.cxx
@@ -239,7 +239,7 @@ uno::Reference< uno::XInterface > SAL_CALL OStorageFactory::createInstanceWithAr
if ( xInputStream.is() )
{
// if xInputStream is set the storage should be open from it
- if ( ( nStorageMode & embed::ElementModes::WRITE ) )
+ if ( nStorageMode & embed::ElementModes::WRITE )
throw uno::Exception(); // TODO: access denied
uno::Reference< io::XSeekable > xSeekable( xInputStream, uno::UNO_QUERY );
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index 89dae3f7bfdc..bb473a090cda 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -2408,7 +2408,7 @@ uno::Reference< embed::XStorage > SAL_CALL OStorage::openStorageElement(
// and since there is no AntiImpl nobody should be notified about it
pElement->m_xStorage->m_nStorageMode = nStorageMode | embed::ElementModes::READ;
- if ( ( nStorageMode & embed::ElementModes::TRUNCATE ) )
+ if ( nStorageMode & embed::ElementModes::TRUNCATE )
{
for ( SotElementList_Impl::iterator pElementIter = pElement->m_xStorage->m_aChildrenList.begin();
pElementIter != pElement->m_xStorage->m_aChildrenList.end(); )