summaryrefslogtreecommitdiff
path: root/pyuno/source/module
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-12 12:21:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-12 12:21:47 +0100
commit3dfcc045dd6a7703eaa0e2617d9247e0c90102de (patch)
treed9757f44c9964d85d3dfde65c27f7eab683d4522 /pyuno/source/module
parentfe20b3d94315a471947883c7692399dd98d58d4c (diff)
pyuno: Use appropriate OUString functions on string constants
Change-Id: Ib507da6fc85d8bc81fd48108a98ef96d188643ac
Diffstat (limited to 'pyuno/source/module')
-rw-r--r--pyuno/source/module/pyuno_adapter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx
index 02881dd763db..83bb271eede4 100644
--- a/pyuno/source/module/pyuno_adapter.cxx
+++ b/pyuno/source/module/pyuno_adapter.cxx
@@ -182,7 +182,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
// special hack for the uno object identity concept. The XUnoTunnel.getSomething() call is
// always handled by the adapter directly.
- if( aParams.getLength() == 1 && aFunctionName.equalsAscii( "getSomething" ) )
+ if( aParams.getLength() == 1 && aFunctionName == "getSomething" )
{
Sequence< sal_Int8 > id;
if( aParams[0] >>= id )
@@ -244,8 +244,8 @@ Any Adapter::invoke( const OUString &aFunctionName,
if( ret.hasValue() &&
ret.getValueTypeClass() == com::sun::star::uno::TypeClass_SEQUENCE &&
- ! aFunctionName.equalsAscii( "getTypes" ) && // needed by introspection itself !
- ! aFunctionName.equalsAscii( "getImplementationId" ) ) // needed by introspection itself !
+ aFunctionName != "getTypes" && // needed by introspection itself !
+ aFunctionName != "getImplementationId" ) // needed by introspection itself !
{
// the sequence can either be
// 1) a simple sequence return value