summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-08-01 10:28:25 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-08-01 12:36:52 +0200
commitc6c446cc3d550770dae2e11fdd03cbfe6ca36c03 (patch)
treec7ecc0b640ec5db51d1ecd4219ffc2c692de6905
parentee64d3cb160347fe19a86b47f3b26b78b20502bf (diff)
downloadqtxmlpatterns-c6c446cc3d550770dae2e11fdd03cbfe6ca36c03.tar.gz
Fix Qt6 build
Change-Id: I46589a4698251fc271c45639b1d3b0ec8cf89fb2 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--tests/auto/qxmlquery/PushBaseliner.h24
-rw-r--r--tests/auto/xmlpatternsview/view/MainWindow.cpp2
2 files changed, 13 insertions, 13 deletions
diff --git a/tests/auto/qxmlquery/PushBaseliner.h b/tests/auto/qxmlquery/PushBaseliner.h
index 37d89ae..5553b8b 100644
--- a/tests/auto/qxmlquery/PushBaseliner.h
+++ b/tests/auto/qxmlquery/PushBaseliner.h
@@ -80,62 +80,62 @@ bool PushBaseliner::isValid() const
void PushBaseliner::startElement(const QXmlName &name)
{
- m_out << "startElement(" << name.toClarkName(m_namePool) << ')'<< endl;
+ m_out << "startElement(" << name.toClarkName(m_namePool) << ')'<< Qt::endl;
}
void PushBaseliner::endElement()
{
- m_out << "endElement()" << endl;
+ m_out << "endElement()" << Qt::endl;
}
void PushBaseliner::attribute(const QXmlName &name, const QStringRef &value)
{
- m_out << "attribute(" << name.toClarkName(m_namePool) << ", " << value.toString() << ')'<< endl;
+ m_out << "attribute(" << name.toClarkName(m_namePool) << ", " << value.toString() << ')'<< Qt::endl;
}
void PushBaseliner::comment(const QString &value)
{
- m_out << "comment(" << value << ')' << endl;
+ m_out << "comment(" << value << ')' << Qt::endl;
}
void PushBaseliner::characters(const QStringRef &value)
{
- m_out << "characters(" << value.toString() << ')' << endl;
+ m_out << "characters(" << value.toString() << ')' << Qt::endl;
}
void PushBaseliner::startDocument()
{
- m_out << "startDocument()" << endl;
+ m_out << "startDocument()" << Qt::endl;
}
void PushBaseliner::endDocument()
{
- m_out << "endDocument()" << endl;
+ m_out << "endDocument()" << Qt::endl;
}
void PushBaseliner::processingInstruction(const QXmlName &name, const QString &data)
{
- m_out << "processingInstruction(" << name.toClarkName(m_namePool) << ", " << data << ')' << endl;
+ m_out << "processingInstruction(" << name.toClarkName(m_namePool) << ", " << data << ')' << Qt::endl;
}
void PushBaseliner::atomicValue(const QVariant &val)
{
- m_out << "atomicValue(" << val.toString() << ')' << endl;
+ m_out << "atomicValue(" << val.toString() << ')' << Qt::endl;
}
void PushBaseliner::namespaceBinding(const QXmlName &name)
{
- m_out << "namespaceBinding(" << name.toClarkName(m_namePool) << ')' << endl;
+ m_out << "namespaceBinding(" << name.toClarkName(m_namePool) << ')' << Qt::endl;
}
void PushBaseliner::startOfSequence()
{
- m_out << "startOfSequence()" << endl;
+ m_out << "startOfSequence()" << Qt::endl;
}
void PushBaseliner::endOfSequence()
{
- m_out << "endOfSequence()" << endl;
+ m_out << "endOfSequence()" << Qt::endl;
}
#endif
diff --git a/tests/auto/xmlpatternsview/view/MainWindow.cpp b/tests/auto/xmlpatternsview/view/MainWindow.cpp
index b0066ff..1c28d81 100644
--- a/tests/auto/xmlpatternsview/view/MainWindow.cpp
+++ b/tests/auto/xmlpatternsview/view/MainWindow.cpp
@@ -487,7 +487,7 @@ void MainWindow::on_actionRestart_triggered()
else
{
QTextStream err(stderr);
- err << "Failed to start " << qPrintable(QCoreApplication::applicationFilePath()) << endl;
+ err << "Failed to start " << qPrintable(QCoreApplication::applicationFilePath()) << Qt::endl;
}
}