Kaydet (Commit) f1cf63c2 authored tarafından Caolán McNamara's avatar Caolán McNamara

OSL_ENSURE->SAL_WARN_IF where conditional deref follows

Change-Id: I2648b0357c13699df2693968db4e57c81028c962
üst 0f297e20
......@@ -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 );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment