diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-03 08:33:34 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-08-27 14:15:32 +0200 |
commit | ae4faee498f9c026db898c0e232f09f4efaf4299 (patch) | |
tree | f29a5df5873ee48cfde0328ccd5ced2ba8e28eca | |
parent | 8bc2c89a998d41c7bca314a13b33f5311639b810 (diff) |
const fixes for python3-devel-3.7.0-1.fc29.x86_64
Change-Id: Ia16a8b828e11ce36e9bb77ecf9e8a1179bd9b90c
Reviewed-on: https://gerrit.libreoffice.org/56841
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
(cherry picked from commit 76a29148be63cb006a7e25e312dc93acc93e071f)
-rw-r--r-- | pyuno/source/module/pyuno_impl.hxx | 2 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_type.cxx | 2 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_util.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index 0452da7cef6f..4a12ad3136d2 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.hxx @@ -80,7 +80,7 @@ inline PyObject* PyStr_FromString(const char *string) return PyUnicode_FromString(string); } -inline char * PyStr_AsString(PyObject *object) +inline char const * PyStr_AsString(PyObject *object) { return PyUnicode_AsUTF8(object); } diff --git a/pyuno/source/module/pyuno_type.cxx b/pyuno/source/module/pyuno_type.cxx index c2472e478029..f35ddf4ace6d 100644 --- a/pyuno/source/module/pyuno_type.cxx +++ b/pyuno/source/module/pyuno_type.cxx @@ -155,7 +155,7 @@ Any PyEnum2Enum( PyObject *obj ) throw ( RuntimeException ) } OUString strTypeName( OUString::createFromAscii( PyStr_AsString( typeName.get() ) ) ); - char *stringValue = PyStr_AsString( value.get() ); + char const *stringValue = PyStr_AsString( value.get() ); TypeDescription desc( strTypeName ); if( desc.is() ) diff --git a/pyuno/source/module/pyuno_util.cxx b/pyuno/source/module/pyuno_util.cxx index ede4cd6f01c0..8e3d74287421 100644 --- a/pyuno/source/module/pyuno_util.cxx +++ b/pyuno/source/module/pyuno_util.cxx @@ -64,7 +64,7 @@ OUString pyString2ustring( PyObject *pystr ) #else #if PY_MAJOR_VERSION >= 3 Py_ssize_t size(0); - char *pUtf8(PyUnicode_AsUTF8AndSize(pystr, &size)); + char const *pUtf8(PyUnicode_AsUTF8AndSize(pystr, &size)); ret = OUString(pUtf8, size, RTL_TEXTENCODING_UTF8); #else PyObject* pUtf8 = PyUnicode_AsUTF8String(pystr); |