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

coverity#1078466 Unchecked return value

Change-Id: Ia78578303cadda713b3c015cd0e30446cd6f8f25
üst 38d87ede
...@@ -778,7 +778,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c ...@@ -778,7 +778,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c
} }
} }
rDoc.acquire(); // prevent deletion (void)rDoc.acquire(); // prevent deletion
sal_uInt32 nRet = 0; sal_uInt32 nRet = 0;
// save redline mode into import info property set // save redline mode into import info property set
...@@ -893,7 +893,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c ...@@ -893,7 +893,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c
rDoc.ReadLayoutCache( *pStrm2 ); rDoc.ReadLayoutCache( *pStrm2 );
delete pStrm2; delete pStrm2;
} }
catch ( uno::Exception& ) catch (const uno::Exception&)
{ {
} }
} }
...@@ -939,7 +939,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c ...@@ -939,7 +939,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c
if( pObjectHelper ) if( pObjectHelper )
SvXMLEmbeddedObjectHelper::Destroy( pObjectHelper ); SvXMLEmbeddedObjectHelper::Destroy( pObjectHelper );
xObjectResolver = 0; xObjectResolver = 0;
rDoc.release(); (void)rDoc.release();
if ( !bOASIS ) if ( !bOASIS )
{ {
......
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