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

coverity#707363 Uncaught exception

Change-Id: I0c61a0176bb108e8e42c56e6cdbfa342ffe2512f
üst bf89444c
...@@ -245,10 +245,18 @@ sal_uLong Writer::Write( SwPaM& rPaM, SvStream& rStrm, const OUString* pFName ) ...@@ -245,10 +245,18 @@ sal_uLong Writer::Write( SwPaM& rPaM, SvStream& rStrm, const OUString* pFName )
{ {
if ( IsStgWriter() ) if ( IsStgWriter() )
{ {
SotStorageRef aRef = new SotStorage( rStrm ); sal_uLong nResult = ERRCODE_ABORT;
sal_uLong nResult = Write( rPaM, *aRef, pFName ); try
if ( nResult == ERRCODE_NONE ) {
aRef->Commit(); SotStorageRef aRef = new SotStorage( rStrm );
nResult = Write( rPaM, *aRef, pFName );
if ( nResult == ERRCODE_NONE )
aRef->Commit();
}
catch (const css::ucb::ContentCreationException &e)
{
SAL_WARN("sw", "SmFilterDetect::detect caught " << e.Message);
}
return nResult; return nResult;
} }
......
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