Commit 13acaf02 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code (using auto)

parent 8343eb2a
Pipeline #39363 passed with stage
in 7 minutes and 59 seconds
......@@ -191,7 +191,7 @@ void MboxTest::testAppend()
KMime::Message *message = mbox.readMessage(msgInfo);
QVERIFY(message != nullptr);
KMime::Message *headers = new KMime::Message();
auto *headers = new KMime::Message();
headers->setHead(KMime::CRLFtoLF(header));
headers->parse();
......@@ -427,7 +427,7 @@ void MboxTest::testHeaders()
KMime::Message *message = mbox.readMessage(msgInfo);
QVERIFY(message != nullptr);
KMime::Message *headers = new KMime::Message();
auto *headers = new KMime::Message();
headers->setHead(KMime::CRLFtoLF(header));
headers->parse();
......
......@@ -500,7 +500,7 @@ KMime::Message *MBox::readMessage(const MBoxEntry &entry)
return nullptr;
}
KMime::Message *mail = new KMime::Message();
auto *mail = new KMime::Message();
mail->setContent(KMime::CRLFtoLF(message));
mail->parse();
......
Markdown is supported
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