From a51865a75742677611c98316384eea889eb5bc88 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 11 Oct 2018 22:00:55 +0300 Subject: loplugin:simplifybool Change-Id: Icb25fd00296f0584fdd503ad0e840870f8bc6774 --- sw/source/uibase/app/docsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') 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) { -- cgit