diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 14:30:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 08:31:30 +0200 |
commit | a1ead1a0281a369087f1b2cce09431542c29bece (patch) | |
tree | dcc7dd8dc2fee88d4f125a7e1c8dd265b64030d5 /svl/source | |
parent | ee96ea7236958a89b60c87f688070412835ead3f (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 'svl/source')
-rw-r--r-- | svl/source/fsstor/fsstorage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx index 01df7112802a..705405fe8c25 100644 --- a/svl/source/fsstor/fsstorage.cxx +++ b/svl/source/fsstor/fsstorage.cxx @@ -393,7 +393,7 @@ uno::Reference< io::XStream > SAL_CALL FSStorage::openStreamElement( if ( !xResult.is() ) throw io::IOException(); - if ( ( nOpenMode & embed::ElementModes::TRUNCATE ) ) + if ( nOpenMode & embed::ElementModes::TRUNCATE ) { uno::Reference< io::XTruncate > xTrunc( xResult->getOutputStream(), uno::UNO_QUERY_THROW ); xTrunc->truncate(); @@ -495,7 +495,7 @@ uno::Reference< embed::XStorage > SAL_CALL FSStorage::openStorageElement( MakeFolderNoUI( aFolderURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ) ); // TODO: not atomic :( } } - else if ( ( nStorageMode & embed::ElementModes::TRUNCATE ) ) + else if ( nStorageMode & embed::ElementModes::TRUNCATE ) throw io::IOException(); // TODO: access denied if ( !bFolderExists ) @@ -1235,7 +1235,7 @@ uno::Reference< embed::XExtendedStorageStream > SAL_CALL FSStorage::openStreamEl if ( !xResult.is() ) throw io::IOException(); - if ( ( nOpenMode & embed::ElementModes::TRUNCATE ) ) + if ( nOpenMode & embed::ElementModes::TRUNCATE ) { uno::Reference< io::XTruncate > xTrunc( xResult->getOutputStream(), uno::UNO_QUERY_THROW ); xTrunc->truncate(); |