diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-10-11 22:00:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2018-10-11 22:03:14 +0300 |
commit | a51865a75742677611c98316384eea889eb5bc88 (patch) | |
tree | 074b5cb8b555f22e75e215dd09bb2e5230c68238 /sw | |
parent | 14337672d2793fec5ec1cebcced33d04ecf4d0c6 (diff) |
loplugin:simplifybool
Change-Id: Icb25fd00296f0584fdd503ad0e840870f8bc6774
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/app/docsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx index 8a7d196ea3c2..d1410e668abd 100644 --- a/sw/source/uibase/app/docsh.cxx +++ b/sw/source/uibase/app/docsh.cxx @@ -455,7 +455,7 @@ bool SwDocShell::SaveAs( SfxMedium& rMedium ) const bool bURLChanged = !GetMedium() || GetMedium()->GetURLObject() != rMedium.GetURLObject(); auto pMgr = m_xDoc->GetDBManager(); - const bool bHasEmbedded = pMgr ? !pMgr->getEmbeddedName().isEmpty() : false; + const bool bHasEmbedded = pMgr && !pMgr->getEmbeddedName().isEmpty(); bool bSaveDS = bHasEmbedded && bURLChanged; if (bSaveDS) { |