diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-05-17 06:30:42 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-05-17 06:30:42 +0000 |
commit | 812e74019f16d90aab085061f071c3d4e095fb50 (patch) | |
tree | 8c7d12e2cd29f8c886458088d46c713ecfd615e4 /connectivity/source/drivers/jdbc/JDriver.cxx | |
parent | 367e22c38163e4ae9a407c5ebdc1ff20c23f70d3 (diff) |
#86528# size changes
Diffstat (limited to 'connectivity/source/drivers/jdbc/JDriver.cxx')
-rw-r--r-- | connectivity/source/drivers/jdbc/JDriver.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/drivers/jdbc/JDriver.cxx b/connectivity/source/drivers/jdbc/JDriver.cxx index d3cd193cd0fa..36bf22da34e5 100644 --- a/connectivity/source/drivers/jdbc/JDriver.cxx +++ b/connectivity/source/drivers/jdbc/JDriver.cxx @@ -2,9 +2,9 @@ * * $RCSfile: JDriver.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: oj $ $Date: 2001-05-09 12:58:20 $ + * last change: $Author: oj $ $Date: 2001-05-17 07:26:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -134,11 +134,11 @@ sal_Bool SAL_CALL java_sql_Driver::supportsService( const ::rtl::OUString& _rSer { 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; } // -------------------------------------------------------------------------------- |