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()) {