summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-09-12 13:18:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-09-12 13:18:19 +0200
commitd1dad0cf5382244dfe940d21a9af4df980c8ecc7 (patch)
tree6a20b033a8c410e6b913635a883aefe0139be715 /cppuhelper
parent905e862c80d1496485cd744bd63f27103d979fa1 (diff)
Use OUString::startsWith where possible
Change-Id: I3f3b7b3600aa097187b05e21c375d087a2fa92bb
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/typemanager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx
index 724b171f8c53..5a50967cf604 100644
--- a/cppuhelper/source/typemanager.cxx
+++ b/cppuhelper/source/typemanager.cxx
@@ -1905,7 +1905,7 @@ css::uno::Any cppuhelper::TypeManager::find(rtl::OUString const & name) {
new SimpleTypeDescription(simple[i].typeClass, name));
}
}
- if (name.match("[]")) {
+ if (name.startsWith("[]")) {
return getSequenceType(name);
}
sal_Int32 i = name.indexOf('<');
@@ -2163,7 +2163,7 @@ void cppuhelper::TypeManager::readRdbFile(
css::uno::Any cppuhelper::TypeManager::getSequenceType(
rtl::OUString const & name)
{
- assert(name.match("[]"));
+ assert(name.startsWith("[]"));
return css::uno::makeAny<
css::uno::Reference< css::reflection::XTypeDescription > >(
new SequenceTypeDescription(