diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-04-04 10:04:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-04-04 10:14:25 +0100 |
commit | e5c7c9697065aebf4bcf75278e70b8fc84f0fbf6 (patch) | |
tree | 58c92782cd18ed5ba42be6228c1637659c97e78c /reportdesign/source/ui | |
parent | f9dd9b867973024d998a45fce37b6acc3d3e8454 (diff) |
coverity#705112 Using invalid iterator
Change-Id: I95a4646e7ecff90babd8c140fdfa5f6fc47ce399
Diffstat (limited to 'reportdesign/source/ui')
-rw-r--r-- | reportdesign/source/ui/dlg/GroupsSorting.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index d81924bd112e..05babba1eae3 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -792,8 +792,8 @@ void OFieldExpressionControl::DeleteRows() // we use this way to create undo actions m_pParent->m_pController->executeChecked(SID_GROUP_REMOVE,aArgs); - ::std::vector<sal_Int32>::iterator aFind = ::std::find(m_aGroupPositions.begin(),m_aGroupPositions.end(),nGroupPos); - ::std::vector<sal_Int32>::const_iterator aEnd = m_aGroupPositions.end(); + std::vector<sal_Int32>::iterator aEnd = m_aGroupPositions.end(); + std::vector<sal_Int32>::iterator aFind = std::find(m_aGroupPositions.begin(), aEnd, nGroupPos); if (aFind != aEnd) { *aFind = NO_GROUP; |