[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 11 19:03:43 UTC 2018
sw/source/uibase/app/docsh.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a51865a75742677611c98316384eea889eb5bc88
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Oct 11 22:00:55 2018 +0300
Commit: Tor Lillqvist <tml at iki.fi>
CommitDate: Thu Oct 11 22:03:14 2018 +0300
loplugin:simplifybool
Change-Id: Icb25fd00296f0584fdd503ad0e840870f8bc6774
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)
{
More information about the Libreoffice-commits
mailing list