Commit 20cf809a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

It's already in qt5.14

parent aed25260
Pipeline #48050 passed with stage
in 13 minutes and 49 seconds
...@@ -406,11 +406,7 @@ bool Part::writeToTextFile(const QString &data, const QString &filename) const ...@@ -406,11 +406,7 @@ bool Part::writeToTextFile(const QString &data, const QString &filename) const
QTextStream stream(&file); QTextStream stream(&file);
stream.setCodec("UTF-8"); stream.setCodec("UTF-8");
stream << data stream << data
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
<< endl
#else
<< Qt::endl << Qt::endl
#endif
; ;
return file.commit(); return file.commit();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment