Kaydet (Commit) 3dfcc045 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

pyuno: Use appropriate OUString functions on string constants

Change-Id: Ib507da6fc85d8bc81fd48108a98ef96d188643ac
üst fe20b3d9
...@@ -182,7 +182,7 @@ Any Adapter::invoke( const OUString &aFunctionName, ...@@ -182,7 +182,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
// special hack for the uno object identity concept. The XUnoTunnel.getSomething() call is // special hack for the uno object identity concept. The XUnoTunnel.getSomething() call is
// always handled by the adapter directly. // always handled by the adapter directly.
if( aParams.getLength() == 1 && aFunctionName.equalsAscii( "getSomething" ) ) if( aParams.getLength() == 1 && aFunctionName == "getSomething" )
{ {
Sequence< sal_Int8 > id; Sequence< sal_Int8 > id;
if( aParams[0] >>= id ) if( aParams[0] >>= id )
...@@ -244,8 +244,8 @@ Any Adapter::invoke( const OUString &aFunctionName, ...@@ -244,8 +244,8 @@ Any Adapter::invoke( const OUString &aFunctionName,
if( ret.hasValue() && if( ret.hasValue() &&
ret.getValueTypeClass() == com::sun::star::uno::TypeClass_SEQUENCE && ret.getValueTypeClass() == com::sun::star::uno::TypeClass_SEQUENCE &&
! aFunctionName.equalsAscii( "getTypes" ) && // needed by introspection itself ! aFunctionName != "getTypes" && // needed by introspection itself !
! aFunctionName.equalsAscii( "getImplementationId" ) ) // needed by introspection itself ! aFunctionName != "getImplementationId" ) // needed by introspection itself !
{ {
// the sequence can either be // the sequence can either be
// 1) a simple sequence return value // 1) a simple sequence return value
......
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