diff options
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/searchcharmap.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/svx/source/dialog/searchcharmap.cxx b/svx/source/dialog/searchcharmap.cxx index 058fb5e2fddb..a65c709fb8d5 100644 --- a/svx/source/dialog/searchcharmap.cxx +++ b/svx/source/dialog/searchcharmap.cxx @@ -464,12 +464,8 @@ void SvxSearchCharSet::AppendCharToList(sal_UCS4 sChar) void SvxSearchCharSet::AppendCharList(std::vector<sal_UCS4> sList) { - std::vector<sal_UCS4>::iterator list_iter = sList.begin(); - while(list_iter != sList.end()) - { - AppendCharToList(*list_iter); - list_iter++; - } + for (auto& it : sList) + AppendCharToList(it); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |