diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/UserAdmin.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/UserAdmin.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/dbaccess/source/ui/dlg/UserAdmin.cxx b/dbaccess/source/ui/dlg/UserAdmin.cxx index 40e33f41da78..82f901715461 100644 --- a/dbaccess/source/ui/dlg/UserAdmin.cxx +++ b/dbaccess/source/ui/dlg/UserAdmin.cxx @@ -222,11 +222,8 @@ void OUserAdmin::FillUserNames() { m_xUSER->clear(); - m_aUserNames = m_xUsers->getElementNames(); - const OUString* pBegin = m_aUserNames.getConstArray(); - const OUString* pEnd = pBegin + m_aUserNames.getLength(); - for(;pBegin != pEnd;++pBegin) - m_xUSER->append_text(*pBegin); + for (auto& name : m_xUsers->getElementNames()) + m_xUSER->append_text(name); m_xUSER->set_active(0); if(m_xUsers->hasByName(m_UserName)) |