Missing include
...and only use getCaughtException as first statement in catch block. Change-Id: Idcac073896b84fd2671b52b2315f454651dbf910
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
#include <comphelper/listenernotification.hxx>
|
#include <comphelper/listenernotification.hxx>
|
||||||
#include <comphelper/property.hxx>
|
#include <comphelper/property.hxx>
|
||||||
#include <connectivity/dbtools.hxx>
|
#include <connectivity/dbtools.hxx>
|
||||||
|
#include <cppuhelper/exc_hlp.hxx>
|
||||||
#include <cppuhelper/queryinterface.hxx>
|
#include <cppuhelper/queryinterface.hxx>
|
||||||
#include <cppuhelper/supportsservice.hxx>
|
#include <cppuhelper/supportsservice.hxx>
|
||||||
#include <toolkit/helper/emptyfontdescriptor.hxx>
|
#include <toolkit/helper/emptyfontdescriptor.hxx>
|
||||||
@@ -654,10 +655,11 @@ void SAL_CALL OControlModel::setName(const OUString& _rName) throw(RuntimeExcept
|
|||||||
}
|
}
|
||||||
catch (const css::beans::UnknownPropertyException&)
|
catch (const css::beans::UnknownPropertyException&)
|
||||||
{
|
{
|
||||||
|
css::uno::Any a(cppu::getCaughtException());
|
||||||
throw WrappedTargetRuntimeException(
|
throw WrappedTargetRuntimeException(
|
||||||
"OControlModel::setName",
|
"OControlModel::setName",
|
||||||
*const_cast< OControlModel* >( this ),
|
*const_cast< OControlModel* >( this ),
|
||||||
::cppu::getCaughtException()
|
a
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user