summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx b/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
index ecabea880895..bfe3213f2291 100644
--- a/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
+++ b/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
@@ -129,9 +129,10 @@ namespace dbaui
nIndex = m_pLine->GetParent()->GetTabWinMap()->size();
const ::std::vector<OTableConnection*>* pVec = m_pLine->GetParent()->getTableConnections();
::std::vector<OTableConnection*>::const_iterator aIter = pVec->begin();
- for (; aIter != pVec->end() && (*aIter) != m_pLine; ++nIndex,++aIter)
+ ::std::vector<OTableConnection*>::const_iterator aEnd = pVec->end();
+ for (; aIter != aEnd && (*aIter) != m_pLine; ++nIndex,++aIter)
;
- nIndex = ( aIter != pVec->end() ) ? nIndex : -1;
+ nIndex = ( aIter != aEnd ) ? nIndex : -1;
}
return nIndex;
}