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

coverity#983958 Uncaught exception

Change-Id: Idd9c2dcfbeceb3519b1632a2f9b2651c73451061
üst 742060f7
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#include <com/sun/star/uno/XInterface.idl> #include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/beans/PropertyValues.idl> #include <com/sun/star/beans/PropertyValues.idl>
#include <com/sun/star/lang/IllegalArgumentException.idl> #include <com/sun/star/lang/IllegalArgumentException.idl>
#include <com/sun/star/beans/UnknownPropertyException.idl> #include <com/sun/star/beans/UnknownPropertyException.idl>
#include <com/sun/star/beans/PropertyVetoException,idl>
#include <com/sun/star/text/XTextRange.idl> #include <com/sun/star/text/XTextRange.idl>
...@@ -51,7 +51,8 @@ interface XTextPortionAppend : com::sun::star::uno::XInterface ...@@ -51,7 +51,8 @@ interface XTextPortionAppend : com::sun::star::uno::XInterface
[in] string Text, [in] string Text,
[in] com::sun::star::beans::PropertyValues CharacterAndParagraphProperties ) [in] com::sun::star::beans::PropertyValues CharacterAndParagraphProperties )
raises( com::sun::star::lang::IllegalArgumentException, raises( com::sun::star::lang::IllegalArgumentException,
com::sun::star::beans::UnknownPropertyException ); com::sun::star::beans::UnknownPropertyException,
com::sun::star::beans::PropertyVetoException );
/** inserts a new text portion to the paragraph at a given position. /** inserts a new text portion to the paragraph at a given position.
...@@ -76,7 +77,8 @@ interface XTextPortionAppend : com::sun::star::uno::XInterface ...@@ -76,7 +77,8 @@ interface XTextPortionAppend : com::sun::star::uno::XInterface
[in] com::sun::star::beans::PropertyValues CharacterAndParagraphProperties, [in] com::sun::star::beans::PropertyValues CharacterAndParagraphProperties,
[in] com::sun::star::text::XTextRange TextRange) [in] com::sun::star::text::XTextRange TextRange)
raises( com::sun::star::lang::IllegalArgumentException, raises( com::sun::star::lang::IllegalArgumentException,
com::sun::star::beans::UnknownPropertyException ); com::sun::star::beans::UnknownPropertyException,
com::sun::star::beans::PropertyVetoException );
}; };
......
...@@ -228,8 +228,10 @@ public: ...@@ -228,8 +228,10 @@ public:
const ::com::sun::star::uno::Sequence< const ::com::sun::star::uno::Sequence<
::com::sun::star::beans::PropertyValue >& ::com::sun::star::beans::PropertyValue >&
rCharacterAndParagraphProperties) rCharacterAndParagraphProperties)
throw (::com::sun::star::lang::IllegalArgumentException, throw (css::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; css::beans::UnknownPropertyException,
css::beans::PropertyVetoException,
css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< virtual ::com::sun::star::uno::Reference<
::com::sun::star::text::XTextRange > SAL_CALL ::com::sun::star::text::XTextRange > SAL_CALL
...@@ -243,6 +245,7 @@ public: ...@@ -243,6 +245,7 @@ public:
rTextRange) rTextRange)
throw (css::lang::IllegalArgumentException, throw (css::lang::IllegalArgumentException,
css::beans::UnknownPropertyException, css::beans::UnknownPropertyException,
css::beans::PropertyVetoException,
css::uno::RuntimeException, css::uno::RuntimeException,
std::exception) SAL_OVERRIDE; std::exception) SAL_OVERRIDE;
......
...@@ -1363,6 +1363,7 @@ SwXText::insertTextPortion( ...@@ -1363,6 +1363,7 @@ SwXText::insertTextPortion(
rCharacterAndParagraphProperties, rCharacterAndParagraphProperties,
const uno::Reference<text::XTextRange>& xInsertPosition) const uno::Reference<text::XTextRange>& xInsertPosition)
throw (lang::IllegalArgumentException, beans::UnknownPropertyException, throw (lang::IllegalArgumentException, beans::UnknownPropertyException,
beans::PropertyVetoException,
uno::RuntimeException, std::exception) uno::RuntimeException, std::exception)
{ {
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
...@@ -1443,7 +1444,8 @@ SwXText::appendTextPortion( ...@@ -1443,7 +1444,8 @@ SwXText::appendTextPortion(
const OUString& rText, const OUString& rText,
const uno::Sequence< beans::PropertyValue > & const uno::Sequence< beans::PropertyValue > &
rCharacterAndParagraphProperties) rCharacterAndParagraphProperties)
throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) throw (lang::IllegalArgumentException, beans::UnknownPropertyException,
beans::PropertyVetoException, uno::RuntimeException, std::exception)
{ {
// Right now this doesn't need a guard, as it's just calling the insert // Right now this doesn't need a guard, as it's just calling the insert
// version, that has it already. // version, that has it already.
......
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