summaryrefslogtreecommitdiff
path: root/cli_ure/source/uno_bridge/cli_uno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli_ure/source/uno_bridge/cli_uno.cxx')
-rw-r--r--cli_ure/source/uno_bridge/cli_uno.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/cli_ure/source/uno_bridge/cli_uno.cxx b/cli_ure/source/uno_bridge/cli_uno.cxx
index 92e98b59807a..d417900af334 100644
--- a/cli_ure/source/uno_bridge/cli_uno.cxx
+++ b/cli_ure/source/uno_bridge/cli_uno.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ System::Object* Bridge::call_uno(uno_Interface * pUnoI,
//
// If an argument is larger then union largest, such as some structures, then the pointer
// points to an extra block of memory. The same goes for a big return value.
-
+
char * mem = (char *)alloca(
(nParams * sizeof (void *)) + return_size + (nParams * sizeof (largest)) );
//array of pointers to args
@@ -94,7 +94,7 @@ System::Object* Bridge::call_uno(uno_Interface * pUnoI,
{
typelib_MethodParameter const & param = pParams[ nPos ];
typelib_TypeDescriptionReference * type = param.pTypeRef;
-
+
uno_args[ nPos ] = &uno_args_mem[ nPos ];
if (typelib_TypeClass_STRUCT == type->eTypeClass ||
typelib_TypeClass_EXCEPTION == type->eTypeClass)
@@ -103,7 +103,7 @@ System::Object* Bridge::call_uno(uno_Interface * pUnoI,
if (td.get()->nSize > sizeof (largest))
uno_args[ nPos ] = alloca( td.get()->nSize );
}
-
+
if (param.bIn)
{
try
@@ -167,7 +167,7 @@ System::Object* Bridge::call_uno(uno_Interface * pUnoI,
uno_type_destructData(uno_args[nPos], type, 0);
}
}
-
+
if ((0 != return_type) &&
(typelib_TypeClass_VOID != return_type->eTypeClass))
{
@@ -207,11 +207,11 @@ System::Object* Bridge::call_uno(uno_Interface * pUnoI,
void Bridge::call_cli(
System::Object* cliI,
- sr::MethodInfo* method,
+ sr::MethodInfo* method,
typelib_TypeDescriptionReference * return_type,
typelib_MethodParameter * params, int nParams,
void * uno_ret, void * uno_args [], uno_Any ** uno_exc ) const
-{
+{
System::Object *args[]= new System::Object*[nParams];
for (int nPos= 0; nPos < nParams; nPos++)
{
@@ -236,7 +236,7 @@ void Bridge::call_cli(
map_to_uno(memExc.get(), exc, td.get()->pWeakRef, false);
(*uno_exc)->pType= td.get()->pWeakRef;
(*uno_exc)->pData= memExc.release();
- return;
+ return;
}
catch (System::Exception* e)
{
@@ -252,7 +252,7 @@ void Bridge::call_cli(
for (int nPos = 0; nPos < nParams; ++nPos )
{
typelib_MethodParameter const & param = params[ nPos ];
-
+
if (param.bOut)
{
try
@@ -276,11 +276,11 @@ void Bridge::call_cli(
}
}
// return value
- if (0 != return_type)
+ if (0 != return_type)
{
map_to_uno(
uno_ret, retInvoke, return_type, false /* no assign */);
- }
+ }
// no exception occured
*uno_exc = 0;
}