comphelper/source/compare/AnyCompareFactory.cxx | 2 +- oovbaapi/ooo/vba/excel/XRange.idl | 2 +- oovbaapi/ooo/vba/word/XRange.idl | 2 +- sc/source/ui/vba/vbachartobject.cxx | 4 +++- sc/source/ui/vba/vbachartobject.hxx | 2 +- sc/source/ui/vba/vbarange.cxx | 2 +- sc/source/ui/vba/vbarange.hxx | 2 +- sw/source/ui/vba/vbarange.cxx | 3 ++- sw/source/ui/vba/vbarange.hxx | 5 ++++- 9 files changed, 15 insertions(+), 9 deletions(-)
New commits: commit e2ae9f3e8cb625cd8a1f6c93b665a06672038fb6 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Jun 13 12:28:36 2014 +0100 coverity#707393 Uncaught exception Change-Id: I89ea074bacf7884fe8b8471cfd208f643326a7e1 diff --git a/oovbaapi/ooo/vba/word/XRange.idl b/oovbaapi/ooo/vba/word/XRange.idl index b171373..f139e2c 100644 --- a/oovbaapi/ooo/vba/word/XRange.idl +++ b/oovbaapi/ooo/vba/word/XRange.idl @@ -46,7 +46,7 @@ interface XRange [attribute] long End; [attribute, readonly] XListFormat ListFormat; - void InsertBreak( [in] any Type ); + void InsertBreak( [in] any Type ) raises (com::sun::star::script::BasicErrorException); void Select(); void InsertParagraph(); void InsertParagraphBefore(); diff --git a/sw/source/ui/vba/vbarange.cxx b/sw/source/ui/vba/vbarange.cxx index 73cd909..f34df15 100644 --- a/sw/source/ui/vba/vbarange.cxx +++ b/sw/source/ui/vba/vbarange.cxx @@ -168,7 +168,8 @@ SwVbaRange::setText( const OUString& rText ) throw ( uno::RuntimeException, std: } // FIXME: test is not pass -void SAL_CALL SwVbaRange::InsertBreak( const uno::Any& _breakType ) throw (uno::RuntimeException, std::exception) +void SAL_CALL SwVbaRange::InsertBreak(const uno::Any& _breakType) + throw (css::script::BasicErrorException, uno::RuntimeException, std::exception) { // default type is wdPageBreak; sal_Int32 nBreakType = word::WdBreakType::wdPageBreak; diff --git a/sw/source/ui/vba/vbarange.hxx b/sw/source/ui/vba/vbarange.hxx index 408c47c..33fffd4 100644 --- a/sw/source/ui/vba/vbarange.hxx +++ b/sw/source/ui/vba/vbarange.hxx @@ -66,7 +66,10 @@ public: virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL getListFormat() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; // Methods - virtual void SAL_CALL InsertBreak( const css::uno::Any& _breakType ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL InsertBreak(const css::uno::Any& _breakType) + throw (css::script::BasicErrorException, + css::uno::RuntimeException, + std::exception) SAL_OVERRIDE; virtual void SAL_CALL Select() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL InsertParagraph() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL InsertParagraphBefore() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; commit 4a662ef7390c7f97961e022598359f88a8e3fe44 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Jun 13 12:03:52 2014 +0100 coverity#706945 Uncaught exception Change-Id: I1da5edfdfd15ec8205de6467bd6c88dc5596426f diff --git a/sc/source/ui/vba/vbachartobject.cxx b/sc/source/ui/vba/vbachartobject.cxx index 413d582..863233e 100644 --- a/sc/source/ui/vba/vbachartobject.cxx +++ b/sc/source/ui/vba/vbachartobject.cxx @@ -91,7 +91,9 @@ ScVbaChartObject::getName() throw (css::uno::RuntimeException, std::exception) } void SAL_CALL -ScVbaChartObject::Delete() throw ( css::script::BasicErrorException, std::exception ) +ScVbaChartObject::Delete() + throw (css::script::BasicErrorException, + css::uno::RuntimeException, std::exception) { // parent of this object is sheet uno::Reference< excel::XWorksheet > xParent( getParent(), uno::UNO_QUERY_THROW ); diff --git a/sc/source/ui/vba/vbachartobject.hxx b/sc/source/ui/vba/vbachartobject.hxx index e1ebbed..e79bfaa 100644 --- a/sc/source/ui/vba/vbachartobject.hxx +++ b/sc/source/ui/vba/vbachartobject.hxx @@ -54,7 +54,7 @@ public: virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setName( const OUString& sName ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< ov::excel::XChart > SAL_CALL getChart() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL Delete() throw ( css::script::BasicErrorException, std::exception ) SAL_OVERRIDE; + virtual void SAL_CALL Delete() throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void Activate() throw ( css::script::BasicErrorException ); // XHelperInterface virtual OUString getServiceImplName() SAL_OVERRIDE; commit 2af58ba716a138ec26970a572134faf2cd29084b Author: Caolán McNamara <caol...@redhat.com> Date: Fri Jun 13 12:00:55 2014 +0100 coverity#707016 Uncaught exception Change-Id: Ie2299485b8017232b6cfcb855b6f2dbff2c5db6e diff --git a/oovbaapi/ooo/vba/excel/XRange.idl b/oovbaapi/ooo/vba/excel/XRange.idl index 85cfcca..7ff34dc 100644 --- a/oovbaapi/ooo/vba/excel/XRange.idl +++ b/oovbaapi/ooo/vba/excel/XRange.idl @@ -129,7 +129,7 @@ interface XRange any BorderAround( [in] any LineStyle, [in] any Weight, [in] any ColorIndex, [in] any Color ); void AutoFilter([in ] any Field, [in] any Criteria1, [in] any Operator, [in] any Criteria2, [in] any VisibleDropDown); void Insert([in] any Shift, [in] any CopyOrigin); - void Autofit(); + void Autofit() raises(com::sun::star::script::BasicErrorException); void PrintOut([in] any From, [in] any To, [in] any Copies, [in] any Preview, [in] any ActivePrinter, [in] any PrintToFile, [in] any Collate, [in] any PrToFileName); void AutoFill( [in] XRange Destination, [in] any Type ); boolean GoalSeek( [in] any Goal, [in] XRange ChangingCell ); diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 3db5938..809be51 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -4703,7 +4703,7 @@ ScVbaRange::Insert( const uno::Any& Shift, const uno::Any& /*CopyOrigin*/ ) thro } void SAL_CALL -ScVbaRange::Autofit() throw (uno::RuntimeException, std::exception) +ScVbaRange::Autofit() throw (script::BasicErrorException, uno::RuntimeException, std::exception) { sal_Int32 nLen = m_Areas->getCount(); if ( nLen > 1 ) diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx index d12968e..9858235 100644 --- a/sc/source/ui/vba/vbarange.hxx +++ b/sc/source/ui/vba/vbarange.hxx @@ -247,7 +247,7 @@ public: virtual void SAL_CALL AutoFilter( const css::uno::Any& Field, const css::uno::Any& Criteria1, const css::uno::Any& Operator, const css::uno::Any& Criteria2, const css::uno::Any& VisibleDropDown ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL Insert( const css::uno::Any& Shift, const css::uno::Any& CopyOrigin ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL Autofit() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL Autofit() throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL PrintOut( const css::uno::Any& From, const css::uno::Any& To, const css::uno::Any& Copies, const css::uno::Any& Preview, const css::uno::Any& ActivePrinter, const css::uno::Any& PrintToFile, const css::uno::Any& Collate, const css::uno::Any& PrToFileName ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL AutoFill( const css::uno::Reference< ov::excel::XRange >& Destination, const css::uno::Any& Type ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE ; void SAL_CALL Calculate( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; commit e8f40ec98852a237552ec8a259038d0fc3b25c10 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Jun 13 11:56:33 2014 +0100 coverity#983616 Uncaught exception Change-Id: I7414fffb0ab0aa7c52ba58d666c26abc4367798c diff --git a/comphelper/source/compare/AnyCompareFactory.cxx b/comphelper/source/compare/AnyCompareFactory.cxx index 1f218a5..3de918e 100644 --- a/comphelper/source/compare/AnyCompareFactory.cxx +++ b/comphelper/source/compare/AnyCompareFactory.cxx @@ -44,7 +44,7 @@ class AnyCompare : public ::cppu::WeakImplHelper1< XAnyCompare > Reference< XCollator > m_rCollator; public: - AnyCompare( Reference< XComponentContext > xContext, const Locale& rLocale ) throw() + AnyCompare( Reference< XComponentContext > xContext, const Locale& rLocale ) { m_rCollator = Collator::create( xContext ); m_rCollator->loadDefaultCollator( rLocale,
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits