summaryrefslogtreecommitdiff
path: root/pyuno/source/module
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2003-08-18 14:00:59 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2003-08-18 14:00:59 +0000
commit0bde3353b1f9da3471b143e24283eed8c6fdee1d (patch)
treeef4c0b228790604021389ba8b3edc4ac3a4ec3b5 /pyuno/source/module
parent22b30d36c299fb7ff8d7572f3b7c6507bf8450e0 (diff)
INTEGRATION: CWS geordi2q01 (1.3.14); FILE MERGED
2003/08/18 13:04:05 hr 1.3.14.1: #i18350#: join changes from CWS ooo11rc3
Diffstat (limited to 'pyuno/source/module')
-rw-r--r--pyuno/source/module/pyuno.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index c3f6bdffc9ec..f7aa53951877 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pyuno.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: jbu $ $Date: 2003-05-24 23:26:45 $
+ * last change: $Author: hjs $ $Date: 2003-08-18 15:00:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -396,7 +396,9 @@ PyObject *PyUNO_invoke( PyObject *object, const char *name , PyObject *args )
{
// clean the tuple from uno.Any !
int size = PyTuple_Size( args );
+ { // for CC, keeping ref-count of tuple being 1
paras = PyRef(PyTuple_New( size ), SAL_NO_ACQUIRE);
+ }
for( int i = 0 ; i < size ;i ++ )
{
PyObject * element = PyTuple_GetItem( args , i );
@@ -697,6 +699,7 @@ PyObject* PyUNO_new (
if (!tmp_interface.is ())
{
// empty reference !
+ Py_INCREF( Py_None );
return Py_None;
}