diff options
-rw-r--r-- | src/linguist/shared/ts.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/linguist/shared/ts.cpp b/src/linguist/shared/ts.cpp index b2744c97d..27b8beea3 100644 --- a/src/linguist/shared/ts.cpp +++ b/src/linguist/shared/ts.cpp @@ -48,6 +48,8 @@ #include <QtCore/QXmlStreamReader> +#include <algorithm> + #define STRINGIFY_INTERNAL(x) #x #define STRINGIFY(x) STRINGIFY_INTERNAL(x) #define STRING(s) static QString str##s(QLatin1String(STRINGIFY(s))) @@ -571,7 +573,7 @@ bool saveTS(const Translator &translator, QIODevice &dev, ConversionData &cd) context.append(msg); } if (cd.sortContexts()) - qSort(contextOrder); + std::sort(contextOrder.begin(), contextOrder.end()); QHash<QString, int> currentLine; QString currentFile; |