diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-28 21:22:54 +0100 |
---|---|---|
committer | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-03-28 22:54:38 +0100 |
commit | 8333cbf2a3940abd0ed6b6bbb2ac25513f86a2fd (patch) | |
tree | 9ca8a3472293e6638e969a79a0b5f049f9da6f88 /pyuno/source/module/pyuno_adapter.cxx | |
parent | ac9c70b1579e94b811bcce9a84fc992cc9a3dd77 (diff) |
Remove RTL_CONSTASCII_(U)STRINGPARAM in pyuno
and use append() instead of appendAscii()
Change-Id: Iaf29a2f18eff39db5d1b5cc298cce23442ac51a9
Diffstat (limited to 'pyuno/source/module/pyuno_adapter.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_adapter.cxx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx index 968f52bb9f9e..e987a7e42762 100644 --- a/pyuno/source/module/pyuno_adapter.cxx +++ b/pyuno/source/module/pyuno_adapter.cxx @@ -128,7 +128,7 @@ Sequence< sal_Int16 > Adapter::getOutIndexes( const OUString & functionName ) if( !introspection.is() ) { throw RuntimeException( - OUString( RTL_CONSTASCII_USTRINGPARAM( "pyuno bridge: Couldn't inspect uno adapter ( the python class must implement com.sun.star.lang.XTypeProvider !)" ) ), + OUString( "pyuno bridge: Couldn't inspect uno adapter ( the python class must implement com.sun.star.lang.XTypeProvider !)" ), Reference< XInterface > () ); } @@ -270,10 +270,8 @@ Any Adapter::invoke( const OUString &aFunctionName, if( ! ( ret >>= seq ) ) { throw RuntimeException( - (OUString( - RTL_CONSTASCII_USTRINGPARAM( - "pyuno bridge: Couldn't extract out" - " parameters for method ")) + (OUString("pyuno bridge: Couldn't extract out" + " parameters for method ") + aFunctionName), Reference< XInterface > () ); } @@ -281,13 +279,13 @@ Any Adapter::invoke( const OUString &aFunctionName, if( aOutParamIndex.getLength() +1 != seq.getLength() ) { OUStringBuffer buf; - buf.appendAscii( "pyuno bridge: expected for method " ); + buf.append( "pyuno bridge: expected for method " ); buf.append( aFunctionName ); - buf.appendAscii( " one return value and " ); + buf.append( " one return value and " ); buf.append( (sal_Int32) aOutParamIndex.getLength() ); - buf.appendAscii( " out parameters, got a sequence of " ); + buf.append( " out parameters, got a sequence of " ); buf.append( seq.getLength() ); - buf.appendAscii( " elements as return value." ); + buf.append( " elements as return value." ); throw RuntimeException(buf.makeStringAndClear(), *this ); } |