Commit 3c2f10e2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify variable

parent 5845a92a
......@@ -277,8 +277,9 @@ void MainTextJobTest::testHtmlWithImages()
Content *html = alternative->contents().at(1);
QCOMPARE(html->contentType()->mimeType(), QByteArray("text/html"));
QString data = QString::fromLatin1(html->body());
int idx1 = data.indexOf(QStringLiteral("cid:%1").arg(cid1));
int idx2 = data.indexOf(QStringLiteral("cid:%1").arg(cid2));
const int idx1 = data.indexOf(QStringLiteral("cid:%1").arg(cid1));
const int idx2 = data.indexOf(QStringLiteral("cid:%1").arg(cid2));
// qDebug() << " cid1 " << cid1 << "cid2 " << cid2 << " data " << data;
QVERIFY(idx1 > 0);
QVERIFY(idx2 > 0);
QVERIFY(idx1 < idx2);
......
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