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

coverity#1213528 Uncaught exception

Change-Id: Ieaa7a7312cb50622f0c1b03f9e2a491b81ddc8ea
üst 139130e5
...@@ -2200,11 +2200,16 @@ bool SvxAutoCorrectLanguageLists::AddToWrdSttExceptList(const OUString& rNew) ...@@ -2200,11 +2200,16 @@ bool SvxAutoCorrectLanguageLists::AddToWrdSttExceptList(const OUString& rNew)
SvStringsISortDtor* SvxAutoCorrectLanguageLists::LoadCplSttExceptList() SvStringsISortDtor* SvxAutoCorrectLanguageLists::LoadCplSttExceptList()
{ {
SotStorageRef xStg = new SotStorage( sShareAutoCorrFile, STREAM_READ | STREAM_SHARE_DENYNONE, sal_True ); try
OUString sTemp ( pXMLImplCplStt_ExcptLstStr ); {
if( xStg.Is() && xStg->IsContained( sTemp ) ) SotStorageRef xStg = new SotStorage( sShareAutoCorrFile, STREAM_READ | STREAM_SHARE_DENYNONE, sal_True );
LoadXMLExceptList_Imp( pCplStt_ExcptLst, pXMLImplCplStt_ExcptLstStr, xStg ); OUString sTemp ( pXMLImplCplStt_ExcptLstStr );
if( xStg.Is() && xStg->IsContained( sTemp ) )
LoadXMLExceptList_Imp( pCplStt_ExcptLst, pXMLImplCplStt_ExcptLstStr, xStg );
}
catch (const css::ucb::ContentCreationException&)
{
}
return pCplStt_ExcptLst; return pCplStt_ExcptLst;
} }
......
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