diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-14 13:01:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-15 11:52:41 +0100 |
commit | e132e781d8b01684d8ef51f060e90d465a21c677 (patch) | |
tree | f18331549fdc95416a748c7792f804a39ab0a30f /sfx2/source | |
parent | 58a2473d6672eb4ae4f55c3fe4c25ea23d932db5 (diff) |
loplugin:simplifybool extend to !(a == b) where comparison an overloaded op
Change-Id: I08fcbe2569c07f5f97269ad861fa6d38f23a7cc7
Reviewed-on: https://gerrit.libreoffice.org/67816
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/dialog/mgetempl.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index aff56ac4e28c..aabdb2de55cf 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -329,10 +329,7 @@ IMPL_LINK_NOARG(SfxManageStyleSheetPage, EditStyleSelectHdl_Impl, weld::ComboBox { OUString aTemplName(m_xFollowLb->get_active_text()); OUString aEditTemplName(m_xName->get_text()); - if (!( aTemplName == aEditTemplName)) - m_xEditStyleBtn->set_sensitive(true); - else - m_xEditStyleBtn->set_sensitive(false); + m_xEditStyleBtn->set_sensitive(aTemplName != aEditTemplName); } IMPL_LINK_NOARG(SfxManageStyleSheetPage, EditStyleHdl_Impl, weld::Button&, void) diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index 549844e18663..fff048706fad 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -1515,7 +1515,7 @@ SfxDocumentMetaData::setTemplateDate(const css::util::DateTime & the_value) { ::osl::ClearableMutexGuard g(m_aMutex); checkInit(); - if (!(m_TemplateDate == the_value)) { + if (m_TemplateDate != the_value) { m_TemplateDate = the_value; g.clear(); setModified(true); |