Kaydet (Commit) 485ec8e1 authored tarafından Noel Grandin's avatar Noel Grandin

fix pyuno compile on Fedora29

'PyUnicode_GetSize' is deprecated [-Werror,-Wdeprecated-declarations]

Change-Id: Id298d6a2b0af9ce418f9124c9addda55fcdc0318
Reviewed-on: https://gerrit.libreoffice.org/62687
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst d4e96a36
......@@ -135,7 +135,11 @@ sal_Unicode PyChar2Unicode( PyObject *obj )
"attribute value of uno.Char is not a unicode string" );
}
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 3
if( PyUnicode_GetLength( value.get() ) < 1 )
#else
if( PyUnicode_GetSize( value.get() ) < 1 )
#endif
{
throw RuntimeException(
"uno.Char contains an empty unicode string");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment