Commit ff447671 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use auto vs auto * where it's possible

parent 9ad326d5
Pipeline #49681 skipped
......@@ -50,7 +50,7 @@ void FakeServer::dataAvailable()
{
QMutexLocker locker(&m_mutex);
auto *socket = qobject_cast<QTcpSocket *>(sender());
auto socket = qobject_cast<QTcpSocket *>(sender());
Q_ASSERT(socket != nullptr);
int scenarioNumber = m_clientSockets.indexOf(socket);
......
......@@ -138,7 +138,7 @@ void SmtpTest::testLoginJob()
session.setCustomHostname(QStringLiteral("127.0.0.1"));
session.openAndWait();
auto *login = new KSmtp::LoginJob(&session);
auto login = new KSmtp::LoginJob(&session);
login->setPreferedAuthMode(mode);
login->setUserName(QStringLiteral("login"));
login->setPassword(QStringLiteral("password"));
......@@ -204,7 +204,7 @@ void SmtpTest::testSendJob()
session.setCustomHostname(QStringLiteral("127.0.0.1"));
session.openAndWait();
auto *send = new KSmtp::SendJob(&session);
auto send = new KSmtp::SendJob(&session);
send->setData("From: foo@bar.com\r\nTo: bar@foo.com\r\nHello world.\r\n.\r\n.\r\n..\r\n.Foo\r\nEnd");
send->setFrom(QStringLiteral("foo@bar.com"));
send->setTo({QStringLiteral("bar@foo.com")});
......
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