[Libreoffice-commits] core.git: svx/source
Julien Nabet
serval2412 at yahoo.fr
Sun Aug 13 08:00:15 UTC 2017
svx/source/dialog/searchcharmap.cxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit 1a6d617136941f5aab6d49c883f80fb62512f54d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Aug 13 08:42:57 2017 +0200
cppcheck: Prefer prefix operator
Just replace the initial loop by a for range loop
Change-Id: I4c7e3be29f50b16e12cd82a39f53f6e03830a1d9
Reviewed-on: https://gerrit.libreoffice.org/41106
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
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: */
More information about the Libreoffice-commits
mailing list