diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 08:32:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 11:08:48 +0200 |
commit | 4b2262ab5b10f334f1984fec84d2978db81c58f1 (patch) | |
tree | de56663eba6ed2edf7a26127339dd8563fdf47be /extensions/source | |
parent | tdf#108919: Fix WID, should be EE_PARA_JUST instead of 0 (diff) | |
download | core-4b2262ab5b10f334f1984fec84d2978db81c58f1.tar.gz core-4b2262ab5b10f334f1984fec84d2978db81c58f1.zip |
new loplugin unnecessaryparen
Change-Id: Ic883a07b30069ca6342d7521c8ad890f4326f0ec
Reviewed-on: https://gerrit.libreoffice.org/39549
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/bibliography/framectr.cxx | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/usercontrol.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx index 5e786a87e00e..131fec773caf 100644 --- a/extensions/source/bibliography/framectr.cxx +++ b/extensions/source/bibliography/framectr.cxx @@ -330,7 +330,7 @@ bool canInsertRecords(const Reference< beans::XPropertySet>& _rxCursorSet) { sal_Int32 nPriv = 0; _rxCursorSet->getPropertyValue("Privileges") >>= nPriv; - return ((_rxCursorSet.is() && (nPriv & sdbcx::Privilege::INSERT) != 0)); + return _rxCursorSet.is() && (nPriv & sdbcx::Privilege::INSERT) != 0; } bool BibFrameController_Impl::SaveModified(const Reference< form::runtime::XFormController>& xController) diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx index 81c7ba7c70c1..0a4e231bf5fa 100644 --- a/extensions/source/propctrlr/usercontrol.cxx +++ b/extensions/source/propctrlr/usercontrol.cxx @@ -256,7 +256,7 @@ namespace pcr void SAL_CALL OFileUrlControl::setValue( const Any& _rValue ) { OUString sURL; - if ( ( _rValue >>= sURL ) ) + if ( _rValue >>= sURL ) { if ( sURL.startsWith( "vnd.sun.star.GraphicObject:" ) ) getTypedControlWindow()->DisplayURL( getTypedControlWindow()->GetPlaceHolder() ); |