diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-05-18 11:22:02 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-05-18 21:05:16 +0200 |
commit | 75f2945476a80e33f7ec29d42f04244467b04e1e (patch) | |
tree | 50b234fad6122980657f6294420b35326c379258 /src/linguist/shared/xliff.cpp | |
parent | 74826870c3a1e56884c3b15755de5fda9b73660b (diff) |
Get rid of the QTextCodec dependency in linguist
Change-Id: I9f09578b816ff24a23e17b3255ac93c5eb7c321e
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/linguist/shared/xliff.cpp')
-rw-r--r-- | src/linguist/shared/xliff.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/linguist/shared/xliff.cpp b/src/linguist/shared/xliff.cpp index e1cc64c59..7d869e06f 100644 --- a/src/linguist/shared/xliff.cpp +++ b/src/linguist/shared/xliff.cpp @@ -34,7 +34,6 @@ #include <QtCore/QRegularExpression> #include <QtCore/QStack> #include <QtCore/QString> -#include <QtCore/QTextCodec> #include <QtCore/QTextStream> // The string value is historical and reflects the main purpose: Keeping @@ -757,7 +756,6 @@ bool saveXLIFF(const Translator &translator, QIODevice &dev, ConversionData &cd) int indent = 0; QTextStream ts(&dev); - ts.setCodec(QTextCodec::codecForName("UTF-8")); QStringList dtgs = cd.dropTags(); dtgs << QLatin1String("po-(old_)?msgid_plural"); |