diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-13 09:32:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-13 16:54:24 +0100 |
commit | b1efc0e9ef657347ac7e2077a49bde331a8b2806 (patch) | |
tree | 9afbfe9b4f1e722940577829063b4e9070e65215 /sw | |
parent | 38d87edeebf08b613e724bd4e84860bcf0c5087f (diff) |
coverity#1078466 Unchecked return value
Change-Id: Ia78578303cadda713b3c015cd0e30446cd6f8f25
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/xml/swxml.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx index acc6352d8a17..29f55b426ec0 100644 --- a/sw/source/filter/xml/swxml.cxx +++ b/sw/source/filter/xml/swxml.cxx @@ -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; // save redline mode into import info property set @@ -893,7 +893,7 @@ sal_uLong XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, c rDoc.ReadLayoutCache( *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 if( pObjectHelper ) SvXMLEmbeddedObjectHelper::Destroy( pObjectHelper ); xObjectResolver = 0; - rDoc.release(); + (void)rDoc.release(); if ( !bOASIS ) { |