summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:03:16 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:03:16 +0000
commitef5dd1ae382e05ec8c4ce3d257bf85930fd737fa (patch)
tree6b878c7461c44bf8dbdf2d74cb655d5bf32f29eb /pyuno
parentf1259dd5ecb2183dd0af217873edbb10cd3f53fc (diff)
INTEGRATION: CWS warnings01 (1.6.16); FILE MERGED
2006/04/20 14:46:08 sb 1.6.16.5: #i53898# Made code warning-free again after resync to SRC680m162. 2006/04/07 21:24:09 sb 1.6.16.4: RESYNC: (1.7-1.8); FILE MERGED 2006/03/01 10:01:15 sb 1.6.16.3: #i53898# Made code waring-free. 2005/09/23 02:08:01 sb 1.6.16.2: RESYNC: (1.6-1.7); FILE MERGED 2005/09/09 15:31:17 sb 1.6.16.1: #i53898# Made code warning-free.
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_adapter.cxx34
1 files changed, 19 insertions, 15 deletions
diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx
index 6139547b2d27..e31869bc1729 100644
--- a/pyuno/source/module/pyuno_adapter.cxx
+++ b/pyuno/source/module/pyuno_adapter.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: pyuno_adapter.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: obo $ $Date: 2006-03-22 10:48:37 $
+ * last change: $Author: hr $ $Date: 2006-06-20 05:03:16 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -70,7 +70,7 @@ using com::sun::star::reflection::XIdlClass;
namespace pyuno
{
-Adapter::Adapter( const PyRef & ref, const Runtime & runtime, const Sequence< Type > &types )
+Adapter::Adapter( const PyRef & ref, const Sequence< Type > &types )
: mWrappedObject( ref ),
mInterpreter( (PyThreadState_Get()->interp) ),
mTypes( types )
@@ -153,8 +153,10 @@ Sequence< sal_Int16 > Adapter::getOutIndexes( const OUString & functionName )
if( ! method.is( ) )
{
throw RuntimeException(
- OUStringBuffer().appendAscii("pyuno bridge: Couldn't get reflection for method "
- ).append( functionName ).makeStringAndClear(),
+ (OUString(
+ RTL_CONSTASCII_USTRINGPARAM(
+ "pyuno bridge: Couldn't get reflection for method "))
+ + functionName),
Reference< XInterface > () );
}
@@ -226,7 +228,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
if( isLog( cargo, LogLevel::CALL ) )
{
logCall( cargo, "try uno->py[0x",
- (sal_Int64) mWrappedObject.get(), aFunctionName, aParams );
+ mWrappedObject.get(), aFunctionName, aParams );
}
sal_Int32 size = aParams.getLength();
@@ -285,9 +287,11 @@ Any Adapter::invoke( const OUString &aFunctionName,
if( ! ( ret >>= seq ) )
{
throw RuntimeException(
- OUStringBuffer().appendAscii(
- "pyuno bridge: Couldn't extract out parameters for method "
- ).append( aFunctionName ).makeStringAndClear(),
+ (OUString(
+ RTL_CONSTASCII_USTRINGPARAM(
+ "pyuno bridge: Couldn't extract out"
+ " parameters for method "))
+ + aFunctionName),
Reference< XInterface > () );
}
@@ -319,7 +323,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
if( isLog( cargo, LogLevel::CALL ) )
{
logReply( cargo, "success uno->py[0x" ,
- (sal_Int64) mWrappedObject.get(), aFunctionName, ret, aOutParam );
+ mWrappedObject.get(), aFunctionName, ret, aOutParam );
}
}
@@ -330,7 +334,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
{
logException(
cargo, "except uno->py[0x" ,
- (sal_Int64) mWrappedObject.get(), aFunctionName,
+ mWrappedObject.get(), aFunctionName,
e.TargetException.getValue(),e.TargetException.getValueType() );
}
throw;
@@ -341,7 +345,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
{
logException(
cargo, "except uno->py[0x" ,
- (sal_Int64) mWrappedObject.get(), aFunctionName, &e,getCppuType(&e) );
+ mWrappedObject.get(), aFunctionName, &e,getCppuType(&e) );
}
throw;
}
@@ -351,7 +355,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
{
logException(
cargo, "except uno->py[0x" ,
- (sal_Int64) mWrappedObject.get(), aFunctionName, &e,getCppuType(&e) );
+ mWrappedObject.get(), aFunctionName, &e,getCppuType(&e) );
}
throw;
}
@@ -361,7 +365,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
{
logException(
cargo, "except uno->py[0x" ,
- (sal_Int64) mWrappedObject.get(), aFunctionName, &e,getCppuType(&e) );
+ mWrappedObject.get(), aFunctionName, &e,getCppuType(&e) );
}
throw;
}
@@ -429,7 +433,7 @@ sal_Bool Adapter::hasMethod( const OUString & aMethodName )
sal_Bool Adapter::hasProperty( const OUString & aPropertyName )
throw ( RuntimeException )
{
- sal_Bool bRet = sal_False;
+ bool bRet = false;
PyThreadAttach guard( mInterpreter );
{
bRet = PyObject_HasAttrString(