summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:04:33 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:04:33 +0000
commit3021250ce09a6aa881ae8ec64ab2f228715d65d0 (patch)
tree51528f8b74f62d4c924a84ea2c0c7421371ad56d /pyuno
parentc8b4d03cc3847177be717cc4abad6e9dcaaa3071 (diff)
INTEGRATION: CWS warnings01 (1.4.24); FILE MERGED
2006/03/01 10:01:16 sb 1.4.24.3: #i53898# Made code waring-free. 2005/09/23 02:09:34 sb 1.4.24.2: RESYNC: (1.4-1.5); FILE MERGED 2005/09/09 15:31:22 sb 1.4.24.1: #i53898# Made code warning-free.
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_type.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/pyuno/source/module/pyuno_type.cxx b/pyuno/source/module/pyuno_type.cxx
index 749a6da64..6f67e87af 100644
--- a/pyuno/source/module/pyuno_type.cxx
+++ b/pyuno/source/module/pyuno_type.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: pyuno_type.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 16:53:49 $
+ * last change: $Author: hr $ $Date: 2006-06-20 05:04:33 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -152,9 +152,9 @@ PyRef getAnyClass( const Runtime & r )
}
-sal_Unicode PyChar2Unicode( PyObject *obj, const Runtime & r ) throw ( RuntimeException )
+sal_Unicode PyChar2Unicode( PyObject *obj ) throw ( RuntimeException )
{
- PyRef value( PyObject_GetAttrString( obj, "value" ), SAL_NO_ACQUIRE );
+ PyRef value( PyObject_GetAttrString( obj, const_cast< char * >("value") ), SAL_NO_ACQUIRE );
if( ! PyUnicode_Check( value.get() ) )
{
throw RuntimeException(
@@ -173,11 +173,11 @@ sal_Unicode PyChar2Unicode( PyObject *obj, const Runtime & r ) throw ( RuntimeEx
return c;
}
-Any PyEnum2Enum( PyObject *obj, const Runtime & r ) throw ( RuntimeException )
+Any PyEnum2Enum( PyObject *obj ) throw ( RuntimeException )
{
Any ret;
- PyRef typeName( PyObject_GetAttrString( obj,"typeName" ), SAL_NO_ACQUIRE);
- PyRef value( PyObject_GetAttrString( obj, "value" ), SAL_NO_ACQUIRE);
+ PyRef typeName( PyObject_GetAttrString( obj,const_cast< char * >("typeName") ), SAL_NO_ACQUIRE);
+ PyRef value( PyObject_GetAttrString( obj, const_cast< char * >("value") ), SAL_NO_ACQUIRE);
if( !PyString_Check( typeName.get() ) || ! PyString_Check( value.get() ) )
{
throw RuntimeException(
@@ -231,9 +231,9 @@ Any PyEnum2Enum( PyObject *obj, const Runtime & r ) throw ( RuntimeException )
}
-Type PyType2Type( PyObject * o, const Runtime & r ) throw(RuntimeException )
+Type PyType2Type( PyObject * o ) throw(RuntimeException )
{
- PyRef pyName( PyObject_GetAttrString( o, "typeName" ), SAL_NO_ACQUIRE);
+ PyRef pyName( PyObject_GetAttrString( o, const_cast< char * >("typeName") ), SAL_NO_ACQUIRE);
if( !PyString_Check( pyName.get() ) )
{
throw RuntimeException(
@@ -241,8 +241,8 @@ Type PyType2Type( PyObject * o, const Runtime & r ) throw(RuntimeException )
Reference< XInterface > () );
}
- PyRef pyTC( PyObject_GetAttrString( o, "typeClass" ), SAL_NO_ACQUIRE );
- Any enumValue = PyEnum2Enum( pyTC.get(), r );
+ PyRef pyTC( PyObject_GetAttrString( o, const_cast< char * >("typeClass") ), SAL_NO_ACQUIRE );
+ Any enumValue = PyEnum2Enum( pyTC.get() );
OUString name( OUString::createFromAscii( PyString_AsString( pyName.get() ) ) );
TypeDescription desc( name );
@@ -284,7 +284,7 @@ PyObject *importToGlobal(PyObject *str, PyObject *dict, PyObject *target)
PyRef typesModule( PyDict_GetItemString( dict, "unotypes" ) );
if( ! typesModule.is() || ! PyModule_Check( typesModule.get() ))
{
- typesModule = PyRef( PyModule_New( "unotypes" ), SAL_NO_ACQUIRE );
+ typesModule = PyRef( PyModule_New( const_cast< char * >("unotypes") ), SAL_NO_ACQUIRE );
Py_INCREF( typesModule.get() );
PyDict_SetItemString( dict, "unotypes" , typesModule.get() );
}
@@ -346,7 +346,7 @@ PyObject *importToGlobal(PyObject *str, PyObject *dict, PyObject *target)
}
}
}
- catch( com::sun::star::container::NoSuchElementException &e )
+ catch( com::sun::star::container::NoSuchElementException & )
{
OUStringBuffer buf;
buf.appendAscii( "pyuno.imp unknown type " );