summaryrefslogtreecommitdiff
path: root/cppuhelper/source
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-05-09 12:25:23 +0000
committerKurt Zenker <kz@openoffice.org>2007-05-09 12:25:23 +0000
commitbde30d4ec1e6ac5710b5ae2fce2c9cbfe98edf76 (patch)
tree791fb70fb9ff42d594bde4947ba6e4ba360d95fa /cppuhelper/source
parent6987579548a89b65e650787c55828bc70605ded1 (diff)
INTEGRATION: CWS bunoexttm (1.10.28); FILE MERGED
2007/01/30 14:19:25 kr 1.10.28.1: adapted: joined from UTF2 - add purposed env. support
Diffstat (limited to 'cppuhelper/source')
-rw-r--r--cppuhelper/source/exc_thrower.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/cppuhelper/source/exc_thrower.cxx b/cppuhelper/source/exc_thrower.cxx
index 8c290dd6b..b094c8778 100644
--- a/cppuhelper/source/exc_thrower.cxx
+++ b/cppuhelper/source/exc_thrower.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: exc_thrower.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 12:40:10 $
+ * last change: $Author: kz $ $Date: 2007-05-09 13:25:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -44,12 +44,15 @@
#include "cppuhelper/detail/XExceptionThrower.hpp"
#include "com/sun/star/uno/RuntimeException.hpp"
+#include "cppuhelper/exc_hlp.hxx"
+
#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) )
using namespace ::rtl;
using namespace ::osl;
using namespace ::cppu;
+using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
namespace
@@ -227,8 +230,7 @@ void SAL_CALL throwException( Any const & exc ) SAL_THROW( (Exception) )
Reference< XInterface >() );
}
- Mapping uno2cpp(
- OUSTR(UNO_LB_UNO), OUSTR(CPPU_CURRENT_LANGUAGE_BINDING_NAME) );
+ Mapping uno2cpp(Environment(OUSTR(UNO_LB_UNO)), Environment::getCurrent());
if (! uno2cpp.is())
{
throw RuntimeException(
@@ -248,16 +250,14 @@ void SAL_CALL throwException( Any const & exc ) SAL_THROW( (Exception) )
//==============================================================================
Any SAL_CALL getCaughtException()
{
- Mapping cpp2uno(
- OUSTR(CPPU_CURRENT_LANGUAGE_BINDING_NAME), OUSTR(UNO_LB_UNO) );
+ Mapping cpp2uno(Environment::getCurrent(), Environment(OUSTR(UNO_LB_UNO)));
if (! cpp2uno.is())
{
throw RuntimeException(
OUSTR("cannot get C++ to binary UNO mapping!"),
Reference< XInterface >() );
}
- Mapping uno2cpp(
- OUSTR(UNO_LB_UNO), OUSTR(CPPU_CURRENT_LANGUAGE_BINDING_NAME) );
+ Mapping uno2cpp(Environment(OUSTR(UNO_LB_UNO)), Environment::getCurrent());
if (! uno2cpp.is())
{
throw RuntimeException(