summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/classes/sbunoobj.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 2834ae87234c..0c938d6c475e 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -1698,8 +1698,7 @@ bool checkUnoObjectType(SbUnoObject& rUnoObj, const OUString& rClass)
}
// match interface name with passed class name
- if ( (aClassName.getLength() <= aInterfaceName.getLength()) &&
- aInterfaceName.endsWithIgnoreAsciiCase( aClassName ) )
+ if ( aInterfaceName.endsWithIgnoreAsciiCase( aClassName ) )
{
bResult = true;
break;