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/drivers/dbase/DResultSet.cxx | |
parent | 248a47cc35787ea3aa916b4fc6e4e21a6f324f96 (diff) |
#86528# size changes
Diffstat (limited to 'connectivity/source/drivers/dbase/DResultSet.cxx')
-rw-r--r-- | connectivity/source/drivers/dbase/DResultSet.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/source/drivers/dbase/DResultSet.cxx b/connectivity/source/drivers/dbase/DResultSet.cxx index bee3b954b678..9b7b4e3daaec 100644 --- a/connectivity/source/drivers/dbase/DResultSet.cxx +++ b/connectivity/source/drivers/dbase/DResultSet.cxx @@ -2,9 +2,9 @@ * * $RCSfile: DResultSet.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: oj $ $Date: 2001-05-17 06:46:55 $ + * last change: $Author: oj $ $Date: 2001-05-17 09:13:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -113,13 +113,13 @@ Sequence< ::rtl::OUString > SAL_CALL ODbaseResultSet::getSupportedServiceNames( // ------------------------------------------------------------------------- sal_Bool SAL_CALL ODbaseResultSet::supportsService( const ::rtl::OUString& _rServiceName ) throw( RuntimeException) { - 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; } // ------------------------------------------------------------------------- Any SAL_CALL ODbaseResultSet::queryInterface( const Type & rType ) throw(RuntimeException) |