summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-20 15:56:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-20 15:58:24 +0000
commitf1cf63c223fd7b4771df687ae9fe37faeccdb8fe (patch)
tree9a8be329f5d38a331e3d74f6effabc0413c3fd23
parent0f297e20d1382d6ed652471adf4163677f8fe1be (diff)
OSL_ENSURE->SAL_WARN_IF where conditional deref follows
Change-Id: I2648b0357c13699df2693968db4e57c81028c962
-rw-r--r--sw/source/filter/xml/xmltexti.cxx2
1 files changed, 1 insertions, 1 deletions
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 );