summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Msg_Export/src/utils.cpp')
-rwxr-xr-xplugins/Msg_Export/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}