[Libreoffice-commits] core.git: basic/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 23 08:50:56 UTC 2019
basic/source/classes/sbunoobj.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 47d813eabb5c8bca771c20cc248a136a98e5876c
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Oct 23 08:36:23 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Oct 23 10:49:53 2019 +0200
Remove check that is redundant
...since 96710f8e466d44047ea4ac9cb8c70dc7664f5c73 "convert OUString::match to
OUString::endsWith"
Change-Id: Ifd08feede5908e6cc41b25bfe9f8bde6c6d6930b
Reviewed-on: https://gerrit.libreoffice.org/81362
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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;
More information about the Libreoffice-commits
mailing list