summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2003-08-18 14:01:58 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2003-08-18 14:01:58 +0000
commit36b8f705dbd3dc2b6745ccee33e43c429c806065 (patch)
treea1c07a7d9521f65160980dc2c25b795c76cd6d3a
parentc1d933aca8e4b574c9cc0f1b0e0f0640915ad828 (diff)
INTEGRATION: CWS geordi2q01 (1.3.14); FILE MERGED
2003/08/18 13:04:07 hr 1.3.14.1: #i18350#: join changes from CWS ooo11rc3
-rw-r--r--pyuno/source/module/pyuno_module.cxx9
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx5
2 files changed, 9 insertions, 5 deletions
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 5a40cb4a93b7..2b66b2123914 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pyuno_module.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: jbu $ $Date: 2003-05-24 23:32:14 $
+ * last change: $Author: hjs $ $Date: 2003-08-18 15:01:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -158,7 +158,7 @@ static PyObject *createUnoStructHelper(PyObject *self, PyObject* args )
{
idl_class->createObject (IdlStruct);
PyUNO *me = (PyUNO*)PyUNO_new_UNCHECKED( IdlStruct, c->xInvocation );
- ret = PyRef( (PyObject *) me , SAL_NO_ACQUIRE);
+ PyRef returnCandidate( (PyObject*)me, SAL_NO_ACQUIRE );
if( PyTuple_Size( initializer ) > 0 )
{
TypeDescription desc( typeName );
@@ -180,6 +180,7 @@ static PyObject *createUnoStructHelper(PyObject *self, PyObject* args )
buf.makeStringAndClear(), Reference< XInterface > ());
}
}
+ ret = returnCandidate;
}
else
{
@@ -432,6 +433,7 @@ static PyObject *checkType( PyObject *self, PyObject *args )
raisePyExceptionWithAny( makeAny( e ) );
return NULL;
}
+ Py_INCREF( Py_None );
return Py_None;
}
@@ -456,6 +458,7 @@ static PyObject *checkEnum( PyObject *self, PyObject *args )
raisePyExceptionWithAny( makeAny( e) );
return NULL;
}
+ Py_INCREF( Py_None );
return Py_None;
}
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index e65e7b1ea56f..8bc32bc0dbd1 100644
--- a/pyuno/source/module/pyuno_runtime.cxx
+++ b/pyuno/source/module/pyuno_runtime.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pyuno_runtime.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: jbu $ $Date: 2003-05-24 23:31:19 $
+ * last change: $Author: hjs $ $Date: 2003-08-18 15:01:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -545,6 +545,7 @@ PyRef Runtime::any2PyObject (const Any &a ) const
}
}
//We shouldn't be here...
+ Py_INCREF( Py_None );
return Py_None;
}