diff options
Diffstat (limited to 'pyuno/source/module/pyuno_except.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_except.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyuno/source/module/pyuno_except.cxx b/pyuno/source/module/pyuno_except.cxx index 97b876fbcc31..f36cb0ab13ae 100644 --- a/pyuno/source/module/pyuno_except.cxx +++ b/pyuno/source/module/pyuno_except.cxx @@ -69,23 +69,23 @@ void raisePyExceptionWithAny( const com::sun::star::uno::Any &anyExc ) buf.appendAscii( ")" ); PyErr_SetString( PyExc_SystemError, - OUStringToOString(buf.makeStringAndClear(),RTL_TEXTENCODING_ASCII_US) ); + OUStringToOString(buf.makeStringAndClear(),RTL_TEXTENCODING_ASCII_US).getStr() ); } } catch( com::sun::star::lang::IllegalArgumentException & e) { PyErr_SetString( PyExc_SystemError, - OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US) ); + OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US).getStr() ); } catch( com::sun::star::script::CannotConvertException & e) { PyErr_SetString( PyExc_SystemError, - OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US) ); + OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US).getStr() ); } catch( RuntimeException & e) { PyErr_SetString( PyExc_SystemError, - OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US) ); + OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US).getStr() ); } } |