Kaydet (Commit) 9e8a88b6 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#706540 Uncaught exception

Change-Id: I175050b5ab66f4eeaa658f0aab1739b175d38d51
üst 4fd65ac3
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <com/sun/star/form/XLoadable.hpp> #include <com/sun/star/form/XLoadable.hpp>
#include <com/sun/star/io/XMarkableStream.hpp> #include <com/sun/star/io/XMarkableStream.hpp>
#include <com/sun/star/lang/DisposedException.hpp> #include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/sdb/XRowSetChangeBroadcaster.hpp> #include <com/sun/star/sdb/XRowSetChangeBroadcaster.hpp>
#include <com/sun/star/sdb/XRowSetSupplier.hpp> #include <com/sun/star/sdb/XRowSetSupplier.hpp>
#include <com/sun/star/sdbc/ColumnValue.hpp> #include <com/sun/star/sdbc/ColumnValue.hpp>
...@@ -647,7 +648,18 @@ OUString SAL_CALL OControlModel::getName() throw(RuntimeException, std::exceptio ...@@ -647,7 +648,18 @@ OUString SAL_CALL OControlModel::getName() throw(RuntimeException, std::exceptio
void SAL_CALL OControlModel::setName(const OUString& _rName) throw(RuntimeException, std::exception) void SAL_CALL OControlModel::setName(const OUString& _rName) throw(RuntimeException, std::exception)
{ {
try
{
setFastPropertyValue(PROPERTY_ID_NAME, makeAny(_rName)); setFastPropertyValue(PROPERTY_ID_NAME, makeAny(_rName));
}
catch (const css::beans::UnknownPropertyException&)
{
throw WrappedTargetRuntimeException(
"OControlModel::setName",
*const_cast< OControlModel* >( this ),
::cppu::getCaughtException()
);
}
} }
// XServiceInfo // XServiceInfo
......
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