[Libreoffice-commits] .: pyuno/source

Julien Nabet serval2412 at kemper.freedesktop.org
Mon May 9 14:03:09 PDT 2011


 pyuno/source/loader/pyuno_loader.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fb0764c31c895de127d70c1f7ded8fefd14bae04
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun May 8 09:53:31 2011 +0200

    Fix simple warning (explicit cast in char*)

diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx
index 15d0684..b5ef002 100644
--- a/pyuno/source/loader/pyuno_loader.cxx
+++ b/pyuno/source/loader/pyuno_loader.cxx
@@ -197,9 +197,9 @@ Reference< XInterface > CreateInstance( const Reference< XComponentContext > & c
         if( pythonPath.getLength() )
             prependPythonPath( pythonPath );
 #if PY_MAJOR_VERSION >= 3
-        PyImport_AppendInittab( "pyuno", PyInit_pyuno );
+        PyImport_AppendInittab( (char*)"pyuno", PyInit_pyuno );
 #else
-        PyImport_AppendInittab( "pyuno", initpyuno );
+        PyImport_AppendInittab( (char*)"pyuno", initpyuno );
 #endif
         // initialize python 
         Py_Initialize();


More information about the Libreoffice-commits mailing list