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

Modernize code (using auto)

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