diff options
Diffstat (limited to 'src/libs/utils/textfileformat.cpp')
-rw-r--r-- | src/libs/utils/textfileformat.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/utils/textfileformat.cpp b/src/libs/utils/textfileformat.cpp index 8b8a549c35..6e7a7536a0 100644 --- a/src/libs/utils/textfileformat.cpp +++ b/src/libs/utils/textfileformat.cpp @@ -41,7 +41,8 @@ QDebug operator<<(QDebug d, const TextFileFormat &format) nsp << "TextFileFormat: "; if (format.codec) { nsp << format.codec->name(); - foreach (const QByteArray &alias, format.codec->aliases()) + const QList<QByteArray> aliases = format.codec->aliases(); + for (const QByteArray &alias : aliases) nsp << ' ' << alias; } else { nsp << "NULL"; @@ -304,7 +305,7 @@ bool TextFileFormat::writeFile(const QString &fileName, QString plainText, QStri QTC_ASSERT(codec, return false); // Does the user want CRLF? If that is native, - // do net let QFile do the work, because it replaces the line ending after the text was encoded, + // do not let QFile do the work, because it replaces the line ending after the text was encoded, // and this could lead to undecodable file contents. QIODevice::OpenMode fileMode = QIODevice::NotOpen; if (lineTerminationMode == CRLFLineTerminator) |