forked from qt-creator/qt-creator
Workaround 5.15 deprecations in QTextStreams
Change-Id: Ifc2b7fd353e7c12346e9716115e830679cea7666 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user