TextFileFormat: Fix typo in comment

Change-Id: Ifdf99136d5a31dc3fe55633ec1a5d1be69f0b2af
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Andre Hartmann
2020-05-09 16:22:16 +02:00
committed by André Hartmann
parent d5cbdde11f
commit 6683dc1063

View File

@@ -304,7 +304,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)