cppuhelper/source/typemanager.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d1dad0cf5382244dfe940d21a9af4df980c8ecc7
Author: Stephan Bergmann <[email protected]>
Date:   Thu Sep 12 13:18:19 2013 +0200

    Use OUString::startsWith where possible
    
    Change-Id: I3f3b7b3600aa097187b05e21c375d087a2fa92bb

diff --git a/cppuhelper/source/typemanager.cxx 
b/cppuhelper/source/typemanager.cxx
index 724b171..5a50967 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(
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to