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 | f6dd3fb458ca8cfc6530cd4e67f440c90581f273 (patch) | |
tree | ed78412e63e4a9c9e68df36feeb9c864967ace9b /connectivity/source/drivers/adabas/BDriver.cxx | |
parent | 09b35d0e6202d2e0ccf522921bbd5b3fc96d2283 (diff) |
#86528# size changes
Diffstat (limited to 'connectivity/source/drivers/adabas/BDriver.cxx')
-rw-r--r-- | connectivity/source/drivers/adabas/BDriver.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/drivers/adabas/BDriver.cxx b/connectivity/source/drivers/adabas/BDriver.cxx index 6a0868e8f4..592a974767 100644 --- a/connectivity/source/drivers/adabas/BDriver.cxx +++ b/connectivity/source/drivers/adabas/BDriver.cxx @@ -2,9 +2,9 @@ * * $RCSfile: BDriver.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: oj $ $Date: 2001-05-15 08:18:12 $ + * last change: $Author: oj $ $Date: 2001-05-17 09:13:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -189,11 +189,11 @@ sal_Bool SAL_CALL ODriver::supportsService( const ::rtl::OUString& _rServiceName { 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; } //------------------------------------------------------------------ Sequence< ::rtl::OUString > SAL_CALL ODriver::getSupportedServiceNames( ) throw(RuntimeException) |