diff options
Diffstat (limited to 'svx/source/fmcomp/gridctrl.cxx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index a0e898c3d571..2403b92245e1 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -3467,13 +3467,11 @@ void DbGridControl::BeginCursorAction() if (m_pFieldListeners) { ColumnFieldValueListeners* pListeners = static_cast<ColumnFieldValueListeners*>(m_pFieldListeners); - ColumnFieldValueListeners::const_iterator aIter = pListeners->begin(); - while (aIter != pListeners->end()) + for (const auto& rListener : *pListeners) { - GridFieldValueListener* pCurrent = (*aIter).second; + GridFieldValueListener* pCurrent = rListener.second; if (pCurrent) pCurrent->suspend(); - ++aIter; } } @@ -3486,13 +3484,11 @@ void DbGridControl::EndCursorAction() if (m_pFieldListeners) { ColumnFieldValueListeners* pListeners = static_cast<ColumnFieldValueListeners*>(m_pFieldListeners); - ColumnFieldValueListeners::const_iterator aIter = pListeners->begin(); - while (aIter != pListeners->end()) + for (const auto& rListener : *pListeners) { - GridFieldValueListener* pCurrent = (*aIter).second; + GridFieldValueListener* pCurrent = rListener.second; if (pCurrent) pCurrent->resume(); - ++aIter; } } |