sw/source/uibase/app/docsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a51865a75742677611c98316384eea889eb5bc88 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Thu Oct 11 22:00:55 2018 +0300 Commit: Tor Lillqvist <t...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits