filter/source/msfilter/escherex.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 046cee10e62993238534c68e33d97ed63067b290 Author: Adam Seskunas <adamsesku...@gmail.com> AuthorDate: Thu Sep 7 09:39:11 2023 -0700 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Thu Sep 14 16:47:29 2023 +0200 tdf#145538 Change traditional for loop to range based for loop Change-Id: I6c589c588a363cf09a1e6ae79a48911e23cbcf28 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156676 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index c8115a3d3fb4..923bd84da756 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -214,9 +214,9 @@ void EscherPropertyContainer::AddOpt( std::vector<sal_uInt8> aBuf; aBuf.reserve(rString.size() * 2 + 2); - for(size_t i(0); i < rString.size(); i++) + for(const auto& nChar: rString) { - const sal_Unicode nUnicode(rString[i]); + const sal_Unicode nUnicode(nChar); aBuf.push_back(static_cast<sal_uInt8>(nUnicode)); aBuf.push_back(static_cast<sal_uInt8>(nUnicode >> 8)); }