diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-18 16:12:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-19 08:55:21 +0200 |
commit | 96710f8e466d44047ea4ac9cb8c70dc7664f5c73 (patch) | |
tree | 8c3eb8c7aaf1eec6c6248502e1fc8b43f9dc18a9 /extensions | |
parent | e80b9f344aeb88bdbb42d846c0a094d86ee327dc (diff) |
convert OUString::match to OUString::endsWith
Convert code like:
rTxt.match( "---", rTxt.getLength()-3 )
to:
rTxt.endsWith( "---" )
Change-Id: Iada74c5e714f7234f25b326526843a36255d5599
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/genericpropertyhandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx index 66d20cea57d7..c519440e2747 100644 --- a/extensions/source/propctrlr/genericpropertyhandler.cxx +++ b/extensions/source/propctrlr/genericpropertyhandler.cxx @@ -598,7 +598,7 @@ namespace pcr case TypeClass_STRING: { // some special handling for URL properties - bool bIsURLProperty = ( _rPropertyName.getLength() >= 3 ) && _rPropertyName.matchAsciiL( "URL", 3, _rPropertyName.getLength() - 3 ); + bool bIsURLProperty = _rPropertyName.endsWithAsciiL( "URL", 3 ); if ( bIsURLProperty ) { aDescriptor.Control = _rxControlFactory->createPropertyControl( |