From 626dc02c4cb5f18bfb31f315faff5d95ae19dfb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20J=C3=B6nsson?= Date: Wed, 20 May 2015 08:25:14 +0200 Subject: [PATCH] Use old-style loop to be compatible with VS2010. --- PowerEditor/src/MISC/Common/Sorters.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/MISC/Common/Sorters.h b/PowerEditor/src/MISC/Common/Sorters.h index 4873f8386..68e0393ff 100644 --- a/PowerEditor/src/MISC/Common/Sorters.h +++ b/PowerEditor/src/MISC/Common/Sorters.h @@ -132,9 +132,9 @@ public: { output.insert(output.end(), empties.begin(), empties.end()); } - for (const std::pair& sortedNumber : nonEmptyInputAsNumbers) + for (auto it = nonEmptyInputAsNumbers.begin(); it != nonEmptyInputAsNumbers.end(); ++it) { - output.push_back(lines[sortedNumber.first]); + output.push_back(lines[it->first]); } if (isDescending()) {