diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-01-17 09:26:41 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-01-17 15:47:45 +0100 |
commit | d30ecc1a23405aefb7f53f3865b7f9d79aa6874f (patch) | |
tree | 231bd4c758366cd2d0bc7c437ad1f8e369ec9572 /dbaccess | |
parent | b713652b33b6eb180528016f81de59451e2e51f1 (diff) |
janitorial: const iterator where may be, indentation
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index c3f41058bee8..6024f3f940cc 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -290,16 +290,16 @@ void OKeySet::construct(const Reference< XResultSet>& _xDriverSet,const ::rtl::O ::dbaccess::getColumnPositions(xQueryColumns,xSelColSup->getColumns()->getElementNames(),sSelectTableName,(*m_pForeignColumnNames)); - SelectColumnsMetaData::iterator aPosEnd = (*m_pForeignColumnNames).end(); + const SelectColumnsMetaData::iterator aPosEnd = (*m_pForeignColumnNames).end(); for(SelectColumnsMetaData::iterator aPosIter = (*m_pForeignColumnNames).begin();aPosIter != aPosEnd;++aPosIter) { // look for columns not in the source columns to use them as filter as well - if ( aFilter.getLength() ) - aFilter.append(aAnd); - aFilter.append(::dbtools::quoteName( aQuote,sSelectTableName)); - aFilter.append(s_sDot); - aFilter.append(::dbtools::quoteName( aQuote,aPosIter->second.sRealName)); - aFilter.append(s_sParam); + if ( aFilter.getLength() ) + aFilter.append(aAnd); + aFilter.append(::dbtools::quoteName( aQuote,sSelectTableName)); + aFilter.append(s_sDot); + aFilter.append(::dbtools::quoteName( aQuote,aPosIter->second.sRealName)); + aFilter.append(s_sParam); } break; } |