diff options
Diffstat (limited to 'connectivity/source/sdbcx/VColumn.cxx')
-rw-r--r-- | connectivity/source/sdbcx/VColumn.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/source/sdbcx/VColumn.cxx b/connectivity/source/sdbcx/VColumn.cxx index e6af610ef556..5f97635ec7fe 100644 --- a/connectivity/source/sdbcx/VColumn.cxx +++ b/connectivity/source/sdbcx/VColumn.cxx @@ -2,9 +2,9 @@ * * $RCSfile: VColumn.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 @@ -102,13 +102,13 @@ using namespace ::com::sun::star::lang; // ----------------------------------------------------------------------------- sal_Bool SAL_CALL OColumn::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; } // ------------------------------------------------------------------------- OColumn::OColumn(sal_Bool _bCase) : OColumnDescriptor_BASE(m_aMutex) |