summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-18 16:12:40 +0200
committerNoel Grandin <noel@peralex.com>2014-03-19 08:55:21 +0200
commit96710f8e466d44047ea4ac9cb8c70dc7664f5c73 (patch)
tree8c3eb8c7aaf1eec6c6248502e1fc8b43f9dc18a9 /basic
parente80b9f344aeb88bdbb42d846c0a094d86ee327dc (diff)
convert OUString::match to OUString::endsWith
Convert code like: rTxt.match( "---", rTxt.getLength()-3 ) to: rTxt.endsWith( "---" ) Change-Id: Iada74c5e714f7234f25b326526843a36255d5599
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 34a9c9ba401b..1602fb0e65ef 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -1767,7 +1767,7 @@ bool checkUnoObjectType( SbUnoObject* pUnoObj, const OUString& rClass )
// match interface name with passed class name
OSL_TRACE("Checking if object implements %s", OUStringToOString( aClassName, RTL_TEXTENCODING_UTF8 ).getStr() );
if ( (aClassName.getLength() <= aInterfaceName.getLength()) &&
- aInterfaceName.matchIgnoreAsciiCase( aClassName, aInterfaceName.getLength() - aClassName.getLength() ) )
+ aInterfaceName.endsWithIgnoreAsciiCase( aClassName ) )
{
result = true;
break;