summaryrefslogtreecommitdiff
path: root/include/uno/current_context.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/uno/current_context.hxx')
-rw-r--r--include/uno/current_context.hxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/uno/current_context.hxx b/include/uno/current_context.hxx
index 6efc506ebd4a..9e043491e332 100644
--- a/include/uno/current_context.hxx
+++ b/include/uno/current_context.hxx
@@ -42,7 +42,6 @@ namespace uno
@return current context or null ref, if none is set
*/
inline Reference< XCurrentContext > SAL_CALL getCurrentContext()
- SAL_THROW(())
{
Reference< XCurrentContext > xRet;
::rtl::OUString aEnvTypeName( CPPU_CURRENT_LANGUAGE_BINDING_NAME );
@@ -56,7 +55,6 @@ inline Reference< XCurrentContext > SAL_CALL getCurrentContext()
*/
inline bool SAL_CALL setCurrentContext(
Reference< XCurrentContext > const & xContext )
- SAL_THROW(())
{
::rtl::OUString aEnvTypeName( CPPU_CURRENT_LANGUAGE_BINDING_NAME );
return (::uno_setCurrentContext( xContext.get(), aEnvTypeName.pData, 0 ) != sal_False);
@@ -81,23 +79,20 @@ public:
@param xNewContext new context to be set
*/
inline ContextLayer(
- Reference< XCurrentContext > const & xNewContext = Reference< XCurrentContext >() )
- SAL_THROW(());
+ Reference< XCurrentContext > const & xNewContext = Reference< XCurrentContext >() );
/** Destructor: restores the previous context.
*/
- inline ~ContextLayer() SAL_THROW(());
+ inline ~ContextLayer();
/** Gets the previously set context.
@return the previously set context
*/
inline Reference< XCurrentContext > SAL_CALL getPreviousContext() const
- SAL_THROW(())
{ return m_xPreviousContext; }
};
inline ContextLayer::ContextLayer( Reference< XCurrentContext > const & xNewContext )
- SAL_THROW(())
: m_aEnvTypeName( CPPU_CURRENT_LANGUAGE_BINDING_NAME )
{
::uno_getCurrentContext( (void **)&m_xPreviousContext, m_aEnvTypeName.pData, 0 );
@@ -105,7 +100,6 @@ inline ContextLayer::ContextLayer( Reference< XCurrentContext > const & xNewCont
}
inline ContextLayer::~ContextLayer()
- SAL_THROW(())
{
::uno_setCurrentContext( m_xPreviousContext.get(), m_aEnvTypeName.pData, 0 );
}