diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-05-17 08:15:34 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-05-17 08:15:34 +0000 |
commit | 9472185a918f24355f0fe4e00c0527914a309fc0 (patch) | |
tree | 6393cdcdd5a0799f321218e599ffa38be2d5bcd3 /connectivity/source/sdbcx/VIndex.cxx | |
parent | 248a47cc35787ea3aa916b4fc6e4e21a6f324f96 (diff) |
#86528# size changes
Diffstat (limited to 'connectivity/source/sdbcx/VIndex.cxx')
-rw-r--r-- | connectivity/source/sdbcx/VIndex.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/source/sdbcx/VIndex.cxx b/connectivity/source/sdbcx/VIndex.cxx index a9e64fd60730..3d913cb451ff 100644 --- a/connectivity/source/sdbcx/VIndex.cxx +++ b/connectivity/source/sdbcx/VIndex.cxx @@ -2,9 +2,9 @@ * * $RCSfile: VIndex.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: oj $ $Date: 2001-05-14 11:34:03 $ + * last change: $Author: oj $ $Date: 2001-05-17 09:13:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -110,13 +110,13 @@ using namespace ::com::sun::star::lang; // ----------------------------------------------------------------------------- sal_Bool SAL_CALL OIndex::supportsService( const ::rtl::OUString& _rServiceName ) throw(::com::sun::star::uno::RuntimeException) { - ::com::sun::star::uno::Sequence< ::rtl::OUString > aSupported(getSupportedServiceNames()); + Sequence< ::rtl::OUString > aSupported(getSupportedServiceNames()); const ::rtl::OUString* pSupported = aSupported.getConstArray(); - for (sal_Int32 i=0; i<aSupported.getLength(); ++i, ++pSupported) - if (pSupported->equals(_rServiceName)) - return sal_True; + const ::rtl::OUString* pEnd = pSupported + aSupported.getLength(); + for (;pSupported != pEnd && !pSupported->equals(_rServiceName); ++pSupported) + ; - return sal_False; + return pSupported != pEnd; } // ------------------------------------------------------------------------- OIndex::OIndex(sal_Bool _bCase) : ODescriptor_BASE(m_aMutex) |