Workaround 5.15 deprecations in QTextStreams

Change-Id: Ifc2b7fd353e7c12346e9716115e830679cea7666
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2020-01-17 14:37:08 +01:00
committed by hjk
parent 37e7b72609
commit 7021b1f078
9 changed files with 55 additions and 56 deletions

View File

@@ -33,7 +33,6 @@
#endif
using namespace GLSL;
using namespace Qt;
ASTDump::ASTDump(QTextStream &out)
: out(out), _depth(0)
@@ -53,7 +52,7 @@ bool ASTDump::preVisit(AST *ast)
char *cppId = abi::__cxa_demangle(id, nullptr, nullptr, nullptr);
id = cppId;
#endif
out << QByteArray(_depth, ' ') << id << endl;
out << QByteArray(_depth, ' ') << id << '\n';
#ifdef Q_CC_GNU
free(cppId);
#endif