dbaccess/source/core/api/StaticSet.cxx | 2 +- dbaccess/source/core/api/StaticSet.hxx | 2 +- filter/source/svg/svgexport.cxx | 2 +- filter/source/svg/svgfilter.hxx | 2 +- filter/source/svg/test/svg2odf.cxx | 5 +++++ formula/source/ui/dlg/formula.cxx | 3 +-- helpcompiler/source/HelpLinker_main.cxx | 5 +++++ include/svx/AccessibleShape.hxx | 2 +- include/vbahelper/vbaeventshelperbase.hxx | 4 ++-- pyuno/inc/pyuno/pyuno.hxx | 2 +- pyuno/source/module/pyuno_runtime.cxx | 2 +- sc/source/ui/vba/excelvbahelper.cxx | 2 +- sc/source/ui/vba/excelvbahelper.hxx | 2 +- sc/source/ui/vba/vbaeventshelper.cxx | 2 +- sc/source/ui/vba/vbaeventshelper.hxx | 2 +- svl/source/inc/passwordcontainer.hxx | 4 ++-- svl/source/passwordcontainer/passwordcontainer.cxx | 4 ++-- svx/source/accessibility/AccessibleShape.cxx | 2 +- svx/source/fmcomp/gridctrl.cxx | 4 ++-- svx/source/svdraw/svdobj.cxx | 1 - sw/inc/unocrsrhelper.hxx | 11 ++++++----- sw/inc/unostyle.hxx | 2 +- sw/source/core/unocore/unoobj.cxx | 2 +- sw/source/core/unocore/unostyle.cxx | 2 +- sw/source/core/unocore/unotbl.cxx | 3 ++- ucb/source/core/ucbcmds.cxx | 2 +- ucb/source/ucp/ftp/ftpurl.cxx | 2 +- ucb/source/ucp/ftp/ftpurl.hxx | 2 +- ucb/source/ucp/webdav-neon/webdavcontent.cxx | 7 +++---- ucb/source/ucp/webdav-neon/webdavcontent.hxx | 6 +++--- vbahelper/source/vbahelper/vbaeventshelperbase.cxx | 2 +- 31 files changed, 52 insertions(+), 43 deletions(-)
New commits: commit 1d498fb0feca911fa063e96779b654c3aded2415 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 09:15:23 2015 +0100 some other coverity things Change-Id: I89ffd2b918f8707cde1b1d015c1ad35ef484b69c diff --git a/dbaccess/source/core/api/StaticSet.cxx b/dbaccess/source/core/api/StaticSet.cxx index aea9c4d..7fd2cae 100644 --- a/dbaccess/source/core/api/StaticSet.cxx +++ b/dbaccess/source/core/api/StaticSet.cxx @@ -296,7 +296,7 @@ void SAL_CALL OStaticSet::insertRow( const ORowSetRow& _rInsertRow,const connect } } -void SAL_CALL OStaticSet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rOriginalRow,const connectivity::OSQLTable& _xTable ) throw(SQLException, RuntimeException) +void SAL_CALL OStaticSet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetRow& _rOriginalRow,const connectivity::OSQLTable& _xTable ) throw(SQLException, RuntimeException, std::exception) { OCacheSet::updateRow( _rInsertRow,_rOriginalRow,_xTable); } diff --git a/dbaccess/source/core/api/StaticSet.hxx b/dbaccess/source/core/api/StaticSet.hxx index 1a07d79..4b30def 100644 --- a/dbaccess/source/core/api/StaticSet.hxx +++ b/dbaccess/source/core/api/StaticSet.hxx @@ -74,7 +74,7 @@ namespace dbaccess virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rows,const connectivity::OSQLTable& _xTable ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; // ::com::sun::star::sdbc::XResultSetUpdate virtual void SAL_CALL insertRow( const ORowSetRow& _rInsertRow,const connectivity::OSQLTable& _xTable ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; - virtual void SAL_CALL updateRow(const ORowSetRow& _rInsertRow,const ORowSetRow& _rOriginalRow,const connectivity::OSQLTable& _xTable ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; + virtual void SAL_CALL updateRow(const ORowSetRow& _rInsertRow,const ORowSetRow& _rOriginalRow,const connectivity::OSQLTable& _xTable ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL deleteRow(const ORowSetRow& _rInsertRow,const connectivity::OSQLTable& _xTable ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; virtual void SAL_CALL cancelRowUpdates( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; virtual void SAL_CALL moveToInsertRow( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; diff --git a/include/svx/AccessibleShape.hxx b/include/svx/AccessibleShape.hxx index cb36b26..495c3c1 100644 --- a/include/svx/AccessibleShape.hxx +++ b/include/svx/AccessibleShape.hxx @@ -442,7 +442,7 @@ protected: */ virtual OUString CreateAccessibleName() - throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; + throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; /// Create a description string that contains the accessible description. virtual OUString diff --git a/include/vbahelper/vbaeventshelperbase.hxx b/include/vbahelper/vbaeventshelperbase.hxx index d85bb4f..3c20227 100644 --- a/include/vbahelper/vbaeventshelperbase.hxx +++ b/include/vbahelper/vbaeventshelperbase.hxx @@ -127,7 +127,7 @@ protected: /** Derived classes have to return the argument list for the specified VBA event handler. */ virtual css::uno::Sequence< css::uno::Any > implBuildArgumentList( const EventHandlerInfo& rInfo, - const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) = 0; + const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) = 0; /** Derived classes may do additional postprocessing. Called even if the event handler does not exist, or if an error occurred during execution. */ diff --git a/sc/source/ui/vba/excelvbahelper.cxx b/sc/source/ui/vba/excelvbahelper.cxx index 835effe..1e2e1dc 100644 --- a/sc/source/ui/vba/excelvbahelper.cxx +++ b/sc/source/ui/vba/excelvbahelper.cxx @@ -280,7 +280,7 @@ getUnoSheetModuleObj( const uno::Reference< table::XCell >& xCell ) throw ( uno: } uno::Reference< XHelperInterface > -getUnoSheetModuleObj( const uno::Reference< frame::XModel >& xModel, SCTAB nTab ) throw ( uno::RuntimeException ) +getUnoSheetModuleObj( const uno::Reference< frame::XModel >& xModel, SCTAB nTab ) throw ( uno::RuntimeException, std::exception ) { uno::Reference< sheet::XSpreadsheetDocument > xDoc( xModel, uno::UNO_QUERY_THROW ); uno::Reference< container::XIndexAccess > xSheets( xDoc->getSheets(), uno::UNO_QUERY_THROW ); diff --git a/sc/source/ui/vba/excelvbahelper.hxx b/sc/source/ui/vba/excelvbahelper.hxx index 951b81a..4bd4fdc 100644 --- a/sc/source/ui/vba/excelvbahelper.hxx +++ b/sc/source/ui/vba/excelvbahelper.hxx @@ -54,7 +54,7 @@ css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const cs css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const css::uno::Reference< css::sheet::XSheetCellRangeContainer >& xRanges ) throw ( css::uno::RuntimeException ); css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const css::uno::Reference< css::table::XCellRange >& xRange ) throw ( css::uno::RuntimeException ); css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const css::uno::Reference< css::table::XCell >& xCell ) throw ( css::uno::RuntimeException ); -css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const css::uno::Reference< css::frame::XModel >& xModel, SCTAB nTab ) throw ( css::uno::RuntimeException ); +css::uno::Reference< ooo::vba::XHelperInterface > getUnoSheetModuleObj( const css::uno::Reference< css::frame::XModel >& xModel, SCTAB nTab ) throw ( css::uno::RuntimeException, std::exception ); ScDocShell* GetDocShellFromRange( const css::uno::Reference< css::uno::XInterface >& xRange ) throw ( css::uno::RuntimeException ); void setUpDocumentModules( const css::uno::Reference< css::sheet::XSpreadsheetDocument >& xDoc ); diff --git a/sc/source/ui/vba/vbaeventshelper.cxx b/sc/source/ui/vba/vbaeventshelper.cxx index db2b087..5cb703b 100644 --- a/sc/source/ui/vba/vbaeventshelper.cxx +++ b/sc/source/ui/vba/vbaeventshelper.cxx @@ -686,7 +686,7 @@ bool ScVbaEventsHelper::implPrepareEvent( EventQueue& rEventQueue, } uno::Sequence< uno::Any > ScVbaEventsHelper::implBuildArgumentList( const EventHandlerInfo& rInfo, - const uno::Sequence< uno::Any >& rArgs ) throw (lang::IllegalArgumentException, uno::RuntimeException) + const uno::Sequence< uno::Any >& rArgs ) throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) { // fill arguments for workbook events associated to sheet events according to sheet events, sheet will be added below bool bSheetEventAsBookEvent = rInfo.mnEventId > USERDEFINED_START; diff --git a/sc/source/ui/vba/vbaeventshelper.hxx b/sc/source/ui/vba/vbaeventshelper.hxx index b9530b0..2503fd4 100644 --- a/sc/source/ui/vba/vbaeventshelper.hxx +++ b/sc/source/ui/vba/vbaeventshelper.hxx @@ -45,7 +45,7 @@ public: protected: virtual bool implPrepareEvent( EventQueue& rEventQueue, const EventHandlerInfo& rInfo, const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::uno::RuntimeException) SAL_OVERRIDE; - virtual css::uno::Sequence< css::uno::Any > implBuildArgumentList( const EventHandlerInfo& rInfo, const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) SAL_OVERRIDE; + virtual css::uno::Sequence< css::uno::Any > implBuildArgumentList( const EventHandlerInfo& rInfo, const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void implPostProcessEvent( EventQueue& rEventQueue, const EventHandlerInfo& rInfo, bool bCancel ) throw (css::uno::RuntimeException) SAL_OVERRIDE; virtual OUString implGetDocumentModuleName( const EventHandlerInfo& rInfo, const css::uno::Sequence< css::uno::Any >& rArgs ) const throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) SAL_OVERRIDE; diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx index 9c1c933..773e536 100644 --- a/svx/source/accessibility/AccessibleShape.cxx +++ b/svx/source/accessibility/AccessibleShape.cxx @@ -1154,7 +1154,7 @@ OUString AccessibleShape::CreateAccessibleBaseName() OUString AccessibleShape::CreateAccessibleName() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { return GetFullAccessibleName(this); } diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 25fbc8e..5bd3331 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -261,7 +261,7 @@ public: void suspend() { ++m_nSuspended; } void resume() { --m_nSuspended; } - virtual void _propertyChanged(const PropertyChangeEvent& evt) throw( RuntimeException ) SAL_OVERRIDE; + virtual void _propertyChanged(const PropertyChangeEvent& evt) throw( RuntimeException, std::exception ) SAL_OVERRIDE; }; FmXGridSourcePropListener::FmXGridSourcePropListener(DbGridControl* _pParent) @@ -272,7 +272,7 @@ FmXGridSourcePropListener::FmXGridSourcePropListener(DbGridControl* _pParent) DBG_ASSERT(m_pParent, "FmXGridSourcePropListener::FmXGridSourcePropListener : invalid parent !"); } -void FmXGridSourcePropListener::_propertyChanged(const PropertyChangeEvent& evt) throw( RuntimeException ) +void FmXGridSourcePropListener::_propertyChanged(const PropertyChangeEvent& evt) throw( RuntimeException, std::exception ) { DBG_ASSERT(m_nSuspended>=0, "FmXGridSourcePropListener::_propertyChanged : resume > suspend !"); if (m_nSuspended <= 0) diff --git a/sw/inc/unocrsrhelper.hxx b/sw/inc/unocrsrhelper.hxx index 5a82bd4..9692639 100644 --- a/sw/inc/unocrsrhelper.hxx +++ b/sw/inc/unocrsrhelper.hxx @@ -171,11 +171,12 @@ namespace SwUnoCursorHelper rPropertyValues, const SetAttrMode nAttrMode = SetAttrMode::DEFAULT, const bool bTableMode = false) - throw (::com::sun::star::beans::UnknownPropertyException, - ::com::sun::star::beans::PropertyVetoException, - ::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::lang::WrappedTargetException, - ::com::sun::star::uno::RuntimeException); + throw (css::beans::UnknownPropertyException, + css::beans::PropertyVetoException, + css::lang::IllegalArgumentException, + css::lang::WrappedTargetException, + css::uno::RuntimeException, + std::exception); ::com::sun::star::uno::Any GetPropertyValue( SwPaM& rPaM, const SfxItemPropertySet & rPropSet, diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index d252a69..e856f234 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -195,7 +195,7 @@ protected: ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL GetPropertyValues_Impl( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL GetPropertyValues_Impl( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE; public: diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx index c2fbd47..dc0c45c 100644 --- a/sw/source/core/unocore/unoobj.cxx +++ b/sw/source/core/unocore/unoobj.cxx @@ -1798,7 +1798,7 @@ void SwUnoCursorHelper::SetPropertyValues( const SetAttrMode nAttrMode, const bool bTableMode) throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, - uno::RuntimeException) + uno::RuntimeException, std::exception) { if (!rPropertyValues.getLength()) return; diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index b43c4f7..24b33b6 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -2624,7 +2624,7 @@ static uno::Any lcl_GetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, uno::Sequence< uno::Any > SAL_CALL SwXStyle::GetPropertyValues_Impl( const uno::Sequence< OUString > & rPropertyNames ) - throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException ) + throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) { if ( !m_pDoc ) throw uno::RuntimeException(); commit 3f2c6a02df51f5d548bb1100275860be5196b766 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:58:54 2015 +0100 coverity#1309048 Unchecked return value Change-Id: Ia01a78ff8ec2f4fba49d184e05b5785e59677e9e diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index 4827f9d..8581e8f 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -709,8 +709,7 @@ void FormulaDlg_Impl::MakeTree(IStructHelper* _pTree,SvTreeListEntry* pParent,Fo { OUString aCellResult; OUString aEquals(" = "); - CalcValue( "=" + aResult, aCellResult); - if (aCellResult != aResult) // cell is a formula, print subformula + if (CalcValue( "=" + aResult, aCellResult) && aCellResult != aResult) // cell is a formula, print subformula _pTree->InsertEntry(aResult + aEquals + aCellResult,pParent,STRUCT_END,0,_pToken); else _pTree->InsertEntry(aResult,pParent,STRUCT_END,0,_pToken); commit 2a2d62993ec4ac3d4332b40f28ac40421321f74e Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:56:02 2015 +0100 coverity#1309049 Unchecked return value Change-Id: I2140b14cab6640feb5c09421726a9b4eb97ba27b diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 3b6c184..18fcc76 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1201,7 +1201,8 @@ double SwXCell::GetForcedNumericalValue() const nFIndex = pNumFormatter->GetStandardIndex( eLang ); } double fTmp; - pNumFormatter->IsNumberFormat(const_cast<SwXCell*>(this)->getString(), nFIndex, fTmp); + if (!pNumFormatter->IsNumberFormat(const_cast<SwXCell*>(this)->getString(), nFIndex, fTmp)) + ::rtl::math::setNan(&fTmp); return fTmp; } commit 5c2498545d7d9ab23ed4ac6d17a3c0320537badf Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:45:01 2015 +0100 coverity#1309070 Uncaught exception Change-Id: I33eca20633236ab98df0eabdec4e3761d544167d diff --git a/helpcompiler/source/HelpLinker_main.cxx b/helpcompiler/source/HelpLinker_main.cxx index dd22eb9..e4e45fe 100644 --- a/helpcompiler/source/HelpLinker_main.cxx +++ b/helpcompiler/source/HelpLinker_main.cxx @@ -37,6 +37,11 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { std::cerr << e.m_aErrorMsg; exit(1); } + catch (const std::exception &e) + { + std::cerr << e.what(); + exit(1); + } return 0; } commit 84ab3ce60d2bc77acf914cd341a439abca239849 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:43:29 2015 +0100 coverity#1309069 Uncaught exception Change-Id: I1cef0d50668109100cec7077a0080eaf9ee5a710 diff --git a/filter/source/svg/test/svg2odf.cxx b/filter/source/svg/test/svg2odf.cxx index 78188fa..bb16644 100644 --- a/filter/source/svg/test/svg2odf.cxx +++ b/filter/source/svg/test/svg2odf.cxx @@ -123,6 +123,11 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) SAL_WARN("vcl.app", "Fatal exception: " << e.Message); return 1; } + catch (const std::exception &e) + { + SAL_WARN("vcl.app", "Fatal exception: " << e.what()); + return 1; + } return nRet; } commit 429e195064c76bcdf24a64cb52555894fb9e981c Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:41:50 2015 +0100 coverity#1309068 Uncaught exception Change-Id: I8243eca8d23409cc134379f168aef668dc9c7917 diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index fcfbf7a..645236f 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -595,7 +595,7 @@ OUString FTPURL::net_title() const FTPDirentry FTPURL::direntry() const - throw (curl_exception, malformed_exception) + throw (curl_exception, malformed_exception, std::exception) { OUString nettitle = net_title(); FTPDirentry aDirentry; diff --git a/ucb/source/ucp/ftp/ftpurl.hxx b/ucb/source/ucp/ftp/ftpurl.hxx index 00cc2db..d67cf8f 100644 --- a/ucb/source/ucp/ftp/ftpurl.hxx +++ b/ucb/source/ucp/ftp/ftpurl.hxx @@ -125,7 +125,7 @@ namespace ftp { oslFileHandle open() throw(curl_exception); FTPDirentry direntry() const - throw(curl_exception, malformed_exception); + throw(curl_exception, malformed_exception, std::exception); void insert(bool ReplaceExisting,void* stream) const throw(curl_exception); commit 7799d0749ace1f2508a6d046e2ed77106d68a5fa Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:40:23 2015 +0100 coverity#1309066 Uncaught exception Change-Id: If02a62e814051bb2d75a683877f8d17ec9201993 diff --git a/pyuno/inc/pyuno/pyuno.hxx b/pyuno/inc/pyuno/pyuno.hxx index 825fa93..66ad8e6 100644 --- a/pyuno/inc/pyuno/pyuno.hxx +++ b/pyuno/inc/pyuno/pyuno.hxx @@ -210,7 +210,7 @@ public: */ static void SAL_CALL initialize( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > & ctx ) - throw ( com::sun::star::uno::RuntimeException ); + throw ( com::sun::star::uno::RuntimeException, std::exception ); /** Checks, whether the uno runtime is already initialized in the current python interpreter. */ diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index fcc9467..cda8e8b 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -302,7 +302,7 @@ void stRuntimeImpl::del(PyObject* self) void Runtime::initialize( const Reference< XComponentContext > & ctx ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { PyRef globalDict, runtime; getRuntimeImpl( globalDict , runtime ); commit cf08d804d471ea77343489ab84a3918e82d061e4 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:38:50 2015 +0100 coverity#1309065 Uncaught exception Change-Id: I1ed3bec714a36bde4d4472b93f8e3a8950161e4d diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx index 475dc17..249d8d8 100644 --- a/ucb/source/core/ucbcmds.cxx +++ b/ucb/source/core/ucbcmds.cxx @@ -1207,7 +1207,7 @@ void globalTransfer_( const uno::Reference< ucb::XContent > & xSource, const uno::Reference< ucb::XContent > & xTarget, const uno::Reference< sdbc::XRow > & xSourceProps ) - throw( uno::Exception ) + throw( uno::Exception, std::exception ) { // IsFolder: property is required. bool bSourceIsFolder = xSourceProps->getBoolean( 1 ); diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 72a8c7e..88d780d 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -2106,11 +2106,10 @@ uno::Any Content::open( return aRet; } - void Content::post( const ucb::PostCommandArgument2 & rArg, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) - throw( uno::Exception ) + throw( uno::Exception, std::exception ) { uno::Reference< io::XActiveDataSink > xSink( rArg.Sink, uno::UNO_QUERY ); if ( xSink.is() ) diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.hxx b/ucb/source/ucp/webdav-neon/webdavcontent.hxx index a76bea9..85f2b30 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.hxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.hxx @@ -157,7 +157,7 @@ private: void post( const com::sun::star::ucb::PostCommandArgument2 & rArg, const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv ) - throw( ::com::sun::star::uno::Exception ); + throw( ::com::sun::star::uno::Exception, std::exception ); // Command "insert" void insert( const ::com::sun::star::uno::Reference< commit 10fa7b0a520c4243f09fdb2027cf5cd546e1f15e Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:37:25 2015 +0100 coverity#1309063 Uncaught exception Change-Id: I4fa0f2c0bb139c5c0a95647fc84fef978d3149b9 diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 509ca0d..72a8c7e 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -2813,7 +2813,7 @@ void Content::lock( void Content::unlock( const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception ) + throw( uno::Exception, std::exception ) { try { diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.hxx b/ucb/source/ucp/webdav-neon/webdavcontent.hxx index 9240f06..a76bea9 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.hxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.hxx @@ -185,7 +185,7 @@ private: // Command "unlock" void unlock( const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& Environment ) - throw( ::com::sun::star::uno::Exception ); + throw( ::com::sun::star::uno::Exception, std::exception ); ::com::sun::star::uno::Any MapDAVException( const DAVException & e, bool bWrite ); commit dba9ab75eda92be9fa92aaedd241d2bb2835c96d Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:35:28 2015 +0100 coverity#1309057 Uncaught exception Change-Id: Idbb43eadaeed8e74e41b4da4f9b02d12ff755672 diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index 5012ed1..1227b97 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -523,7 +523,7 @@ bool EqualityBitmap::operator()( const ObjectRepresentation& rObjRep1, bool SVGFilter::implExport( const Sequence< PropertyValue >& rDescriptor ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext() ) ; Reference< XOutputStream > xOStm; diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx index d19f8a9..55b6253 100644 --- a/filter/source/svg/svgfilter.hxx +++ b/filter/source/svg/svgfilter.hxx @@ -249,7 +249,7 @@ private: bool implImport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException, std::exception); - bool implExport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException); + bool implExport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException, std::exception); static Reference< XWriter > implCreateExportDocumentHandler( const Reference< XOutputStream >& rxOStm ); bool implGetPagePropSet( const Reference< XDrawPage > & rxPage ); commit 39c2de683a3ffb116c49f089df00b73afb63383c Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:33:59 2015 +0100 coverity#1309060 Uncaught exception Change-Id: I9815d25807f19bdd87e4aca9348e95f521f4fdd8 diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 5797819..509ca0d 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -2772,7 +2772,7 @@ bool Content::supportsExclusiveWriteLock( void Content::lock( const uno::Reference< ucb::XCommandEnvironment >& Environment ) - throw( uno::Exception ) + throw( uno::Exception, std::exception ) { try { diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.hxx b/ucb/source/ucp/webdav-neon/webdavcontent.hxx index 5b01882..9240f06 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.hxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.hxx @@ -180,7 +180,7 @@ private: // Command "lock" void lock( const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >& Environment ) - throw( ::com::sun::star::uno::Exception ); + throw( ::com::sun::star::uno::Exception, std::exception ); // Command "unlock" void unlock( const com::sun::star::uno::Reference< commit b9bed0f9b63fae6094b6ab650b18afc1789e56da Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:29:12 2015 +0100 stray printf Change-Id: I27ca497bcfbb0e3ed82066fd1c953b39763a2e99 diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 51b5e0d..9bf94f7 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -1620,7 +1620,6 @@ void SdrObject::ImpSetAnchorPos(const Point& rPnt) void SdrObject::NbcSetAnchorPos(const Point& rPnt) { - fprintf(stderr, "NbcSetAnchorPos %ld %ld\n", rPnt.X(), rPnt.Y()); Size aSiz(rPnt.X()-aAnchor.X(),rPnt.Y()-aAnchor.Y()); aAnchor=rPnt; NbcMove(aSiz); // This also calls SetRectsDirty() commit 5d4d67abd39218d718828784bde2c66cc7d227b7 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:26:46 2015 +0100 coverity#1309054 Uncaught exception Change-Id: I81c8983a981e1dfeff17f62c852163e6290dceb4 diff --git a/include/vbahelper/vbaeventshelperbase.hxx b/include/vbahelper/vbaeventshelperbase.hxx index 7667f15..d85bb4f 100644 --- a/include/vbahelper/vbaeventshelperbase.hxx +++ b/include/vbahelper/vbaeventshelperbase.hxx @@ -157,7 +157,7 @@ private: /** Searches the event handler in the document and returns its full script path. */ OUString getEventHandlerPath( const EventHandlerInfo& rInfo, - const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException); + const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception); /** On first call, accesses the Basic library containing the VBA source code. */ void ensureVBALibrary() throw (css::uno::RuntimeException); diff --git a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx index 914c90f..3159502 100644 --- a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx +++ b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx @@ -258,7 +258,7 @@ const VbaEventsHelperBase::EventHandlerInfo& VbaEventsHelperBase::getEventHandle } OUString VbaEventsHelperBase::getEventHandlerPath( const EventHandlerInfo& rInfo, - const uno::Sequence< uno::Any >& rArgs ) throw (lang::IllegalArgumentException, uno::RuntimeException) + const uno::Sequence< uno::Any >& rArgs ) throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) { OUString aModuleName; switch( rInfo.mnModuleType ) commit 8c6f67b9426c51554cb844edc3d8ee89a712b65c Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:25:06 2015 +0100 coverity#1309053 Uncaught exception Change-Id: Id251a32c5c46ae4bc759df506b6603880dfb47c6 diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx index 345037b..89961e3 100644 --- a/svl/source/inc/passwordcontainer.hxx +++ b/svl/source/inc/passwordcontainer.hxx @@ -259,7 +259,7 @@ private: const ::std::list< NamePassRecord >& userlist, const OUString& name, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) - throw(::com::sun::star::uno::RuntimeException); + throw(css::uno::RuntimeException, std::exception); bool createUrlRecord( const PassMap::iterator & rIter, bool bName, diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index ba852be..76b8eff 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -704,7 +704,7 @@ UrlRecord SAL_CALL PasswordContainer::findForName( const OUString& aURL, const O } -Sequence< UserRecord > PasswordContainer::FindUsr( const list< NamePassRecord >& userlist, const OUString& aName, const Reference< XInteractionHandler >& aHandler ) throw(RuntimeException) +Sequence< UserRecord > PasswordContainer::FindUsr( const list< NamePassRecord >& userlist, const OUString& aName, const Reference< XInteractionHandler >& aHandler ) throw(RuntimeException, std::exception) { sal_uInt32 nInd = 0; for( list< NamePassRecord >::const_iterator aNPIter = userlist.begin(); commit c21aab27749e4399c5310215cba346caa1c21613 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jul 2 08:24:19 2015 +0100 coverity#1309052 Uncaught exception Change-Id: Ic2d43c7f173d3cfbf20741261211468cbc1a11e4 diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx index ba8e72f..345037b 100644 --- a/svl/source/inc/passwordcontainer.hxx +++ b/svl/source/inc/passwordcontainer.hxx @@ -291,7 +291,7 @@ bool createUrlRecord( const ::com::sun::star::uno::Sequence< OUString >& aPasswords, char aMode, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) - throw(::com::sun::star::uno::RuntimeException); + throw(css::uno::RuntimeException, std::exception); static ::std::vector< OUString > DecodePasswords( const OUString& aLine, const OUString& aMasterPassword ) throw(::com::sun::star::uno::RuntimeException); diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index 5b807cd..ba852be 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -656,7 +656,7 @@ void SAL_CALL PasswordContainer::addPersistent( const OUString& Url, const OUStr } -void PasswordContainer::PrivateAdd( const OUString& Url, const OUString& UserName, const Sequence< OUString >& Passwords, char Mode, const Reference< XInteractionHandler >& aHandler ) throw(RuntimeException) +void PasswordContainer::PrivateAdd( const OUString& Url, const OUString& UserName, const Sequence< OUString >& Passwords, char Mode, const Reference< XInteractionHandler >& aHandler ) throw(RuntimeException, std::exception) { NamePassRecord aRecord( UserName ); ::std::vector< OUString > aStorePass = copySequenceToVector( Passwords );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits