From 391980ce1e890445542441eeb5d9f9cc18ae1baf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jan 2018 22:31:20 +0300 Subject: code optimization --- plugins/Msg_Export/src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Msg_Export/src/utils.cpp') diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 7062447709..7024e28f42 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -1318,9 +1318,9 @@ bool bWriteIndentedToFile(HANDLE hFile, int nIndent, const wchar_t *pszSrc, bool // then we will look for a ? and so on. const wchar_t ac[] = { ' ', '?', '-', '.', ',' }; - for (int y = 0; y < _countof(ac); y++) { + for (auto &it : ac) { for (int n = nLineLen; n > 0; n--) { - if (pszSrc[n] == ac[y]) { + if (pszSrc[n] == it) { nLineLen = n; goto SuperBreak; } -- cgit v1.2.3