diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 09:26:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-03 16:30:26 +0100 |
commit | 01539155df5dda580ff248a86e192ced0150fb1b (patch) | |
tree | 6b6b40ac33fd92423df85d9a12d41a760964ec03 /cui/source | |
parent | 575c372fb987dd0a055a5521d0a6d95fb8483992 (diff) |
coverity#1242900 Unused value
Change-Id: Ic556e9ca669af5d514ebe4d6bcff7bdc9271dc7a
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/options/optjava.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 4f9a7963a5db..70aceafb3750 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -275,9 +275,9 @@ IMPL_LINK_NOARG(SvxJavaOptionsPage, AddHdl_Impl) else if ( xFolderPicker.is() && xFolderPicker->execute() == ExecutableDialogResults::OK ) AddFolder( xFolderPicker->getDirectory() ); } - catch (const Exception&) + catch (const Exception& e) { - SAL_WARN( "cui.options", "SvxJavaOptionsPage::AddHdl_Impl(): caught exception" ); + SAL_WARN( "cui.options", "SvxJavaOptionsPage::AddHdl_Impl(): caught exception: " << e.Message); } return 0; @@ -672,8 +672,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ ) for ( i = 0; i < nSize; ++i ) pParamArr[i] = pList[i].pData; eErr = jfw_setVMParameters( pParamArrIter, nSize ); - DBG_ASSERT( JFW_E_NONE == eErr, - "SvxJavaOptionsPage::FillItemSet(): error in jfw_setVMParameters" ); + SAL_WARN_IF("cui.options", JFW_E_NONE != eErr, "SvxJavaOptionsPage::FillItemSet(): error in jfw_setVMParameters"); pParamArrIter = pParamArr; rtl_freeMemory( pParamArr ); bModified = true; |