diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-12-17 23:00:24 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 07:36:32 +0100 |
commit | 4e144751f12a06e358e4f7efa7c8f13954e6cfd7 (patch) | |
tree | c6df66d58d02ecaf5caa437a944665fe83959402 /dbaccess/source/ui/relationdesign | |
parent | 39c618caf5aa19da95285bec6cab7108bee3984c (diff) |
loplugin:unusedindex
Change-Id: I256a807dd2a4c81126b5a76f3d472e31b8224146
Reviewed-on: https://gerrit.libreoffice.org/46652
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/relationdesign')
-rw-r--r-- | dbaccess/source/ui/relationdesign/RelationController.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx index 3bb0804ae42b..233141474c4c 100644 --- a/dbaccess/source/ui/relationdesign/RelationController.cxx +++ b/dbaccess/source/ui/relationdesign/RelationController.cxx @@ -315,12 +315,11 @@ namespace { osl_setThreadName("RelationLoader"); - const OUString* pIter = m_aTableList.getConstArray() + m_nStartIndex; - for(sal_Int32 i = m_nStartIndex; i < m_nEndIndex;++i,++pIter) + for(sal_Int32 i = m_nStartIndex; i < m_nEndIndex; ++i) { OUString sCatalog,sSchema,sTable; ::dbtools::qualifiedNameComponents(m_xMetaData, - *pIter, + m_aTableList[i], sCatalog, sSchema, sTable, @@ -335,7 +334,7 @@ namespace if ( xResult.is() && xResult->next() ) { ::comphelper::disposeComponent(xResult); - loadTableData(m_xTables->getByName(*pIter)); + loadTableData(m_xTables->getByName(m_aTableList[i])); } } catch( const Exception& ) @@ -406,14 +405,12 @@ namespace // insert columns const Reference<XColumnsSupplier> xColsSup(xKey,UNO_QUERY); OSL_ENSURE(xColsSup.is(),"Key is no XColumnsSupplier!"); - const Reference<XNameAccess> xColumns = xColsSup->getColumns(); + const Reference<XNameAccess> xColumns = xColsSup->getColumns(); const Sequence< OUString> aNames = xColumns->getElementNames(); - const OUString* pIter = aNames.getConstArray(); - const OUString* pEnd = pIter + aNames.getLength(); OUString sColumnName,sRelatedName; - for(sal_uInt16 j=0;pIter != pEnd;++pIter,++j) + for(sal_Int32 j=0;j<aNames.getLength();++j) { - const Reference<XPropertySet> xPropSet(xColumns->getByName(*pIter),UNO_QUERY); + const Reference<XPropertySet> xPropSet(xColumns->getByName(aNames[j]),UNO_QUERY); OSL_ENSURE(xPropSet.is(),"Invalid column found in KeyColumns!"); if ( xPropSet.is() ) { |