diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-18 18:04:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-18 18:06:54 +0200 |
commit | c345299186841ccb1fe846f6f277039c188941d6 (patch) | |
tree | 2d1f065903342a52a77f76ecd73ff7a1fb752386 /sfx2 | |
parent | 1be2684512e5ad21526c65ee04acf2c71a8691b6 (diff) |
Remove parentheses around some comparisons
...where Clang would otherwise start to emit -Wparentheses-equality as soon as
the order of arguments were switched by loplugin:comparisonwithconstant
Change-Id: If064c2c6e2f81478154395137138b71f2d1c6534
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/docinsert.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index 606b4001c2bb..fa34dc6e498a 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -746,7 +746,7 @@ SfxDocumentMetaData::setMetaList(const char* i_name, // if nothing changed, do nothing // alas, this does not check for permutations, or attributes... - if ((nullptr == i_pAttrs)) { + if (nullptr == i_pAttrs) { if (static_cast<size_t>(i_rValue.getLength()) == vec.size()) { bool isEqual(true); for (sal_Int32 i = 0; i < i_rValue.getLength(); ++i) { diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx index 30cdb908ba11..5957b0fa4d92 100644 --- a/sfx2/source/doc/docinsert.cxx +++ b/sfx2/source/doc/docinsert.cxx @@ -255,7 +255,7 @@ IMPL_LINK_NOARG(DocumentInserter, DialogClosedHdl, sfx2::FileDialogHelper*, void m_pItemSet->Put( SfxBoolItem( SID_DOC_READONLY, true ) ); else { - if ( ( TemplateDescription::FILEOPEN_READONLY_VERSION == nDlgType ) ) + if ( TemplateDescription::FILEOPEN_READONLY_VERSION == nDlgType ) { try { |