Don't use features of Qt 5.6 in the integration test yet

This commit is contained in:
Alexey Sokolov
2017-11-12 18:00:33 +00:00
parent 744bd7d55c
commit 1a4990c033
+4 -1
View File
@@ -382,7 +382,10 @@ class ZNCTest : public testing::Test {
ASSERT_TRUE(file.open(QIODevice::WriteOnly | QIODevice::Text));
QTextStream out(&file);
for (const QString& line : lines) {
out << line.midRef(maxoffset) << "\n";
// QTextStream::operator<<(const QStringRef &string) was
// introduced in Qt 5.6; let's keep minimum required version
// less than that for now.
out << line.mid(maxoffset) << "\n";
}
} else {
// Write as is