From f1cf63c223fd7b4771df687ae9fe37faeccdb8fe Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 20 Jan 2015 15:56:17 +0000 Subject: OSL_ENSURE->SAL_WARN_IF where conditional deref follows Change-Id: I2648b0357c13699df2693968db4e57c81028c962 --- sw/source/filter/xml/xmltexti.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx index d4d648d58c67..ef9ed0ce79d8 100644 --- a/sw/source/filter/xml/xmltexti.cxx +++ b/sw/source/filter/xml/xmltexti.cxx @@ -188,7 +188,7 @@ bool SwXMLTextImportHelper::IsInHeaderFooter() const assert(xCrsrTunnel.is() && "missing XUnoTunnel for Cursor"); OTextCursorHelper *pTxtCrsr = reinterpret_cast< OTextCursorHelper * >( sal::static_int_cast< sal_IntPtr >( xCrsrTunnel->getSomething( OTextCursorHelper::getUnoTunnelId() ))); - OSL_ENSURE( pTxtCrsr, "SwXTextCursor missing" ); + SAL_WARN_IF(!pTxtCrsr, "sw.uno", "SwXTextCursor missing"); SwDoc *pDoc = pTxtCrsr ? pTxtCrsr->GetDoc() : NULL; return pDoc && pDoc->IsInHeaderFooter( pTxtCrsr->GetPaM()->GetPoint()->nNode ); -- cgit