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 /unoxml/source/rdf | |
parent | ec1de6895d84fbe4f2d5fb7135a59a918138d970 (diff) |
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 'unoxml/source/rdf')
-rw-r--r-- | unoxml/source/rdf/CLiteral.cxx | 4 | ||||
-rw-r--r-- | unoxml/source/rdf/CURI.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx index a922dc874397..7093ee76552d 100644 --- a/unoxml/source/rdf/CLiteral.cxx +++ b/unoxml/source/rdf/CLiteral.cxx @@ -112,14 +112,14 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< css::uno::Any > & a if (len > 1) { OUString arg1; css::uno::Reference< css::rdf::XURI > xURI; - if ((aArguments[1] >>= arg1)) { + if (aArguments[1] >>= arg1) { if (!arg1.isEmpty()) { m_Language = arg1; } else { throw css::lang::IllegalArgumentException( "CLiteral::initialize: argument is not valid language", *this, 1); } - } else if ((aArguments[1] >>= xURI)) { + } else if (aArguments[1] >>= xURI) { if (xURI.is()) { m_xDatatype = xURI; } else { diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx index 0c44afd07f17..35471873ff66 100644 --- a/unoxml/source/rdf/CURI.cxx +++ b/unoxml/source/rdf/CURI.cxx @@ -718,7 +718,7 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< css::uno::Any > & aArgu sal_Int16 arg(0); OUString arg0; OUString arg1; - if ((aArguments[0] >>= arg)) { + if (aArguments[0] >>= arg) { // integer argument: constant from rdf::URIs if (len != 1) { throw css::lang::IllegalArgumentException( |