Commit 365af1e5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use auto vs auto *

parent 1d266b65
......@@ -1111,7 +1111,7 @@ public:
return;
}
auto *job = new KIO::ApplicationLauncherJob(korgaService);
auto job = new KIO::ApplicationLauncherJob(korgaService);
QObject::connect(job, &KJob::finished, job, [date](KJob *job) {
if (job->error()) {
qCWarning(TEXT_CALENDAR_LOG) << "failed to run korganizer" << job->errorString();
......
......@@ -171,7 +171,7 @@ void ItineraryUrlHandler::showCalendar(QDate date) const
}
// Open or activate KOrganizer. This will also activate Kontact if running
auto *job = new KIO::ApplicationLauncherJob(korgaService);
auto job = new KIO::ApplicationLauncherJob(korgaService);
connect(job, &KJob::finished, this, [date](KJob *job) {
if (job->error()) {
......@@ -246,7 +246,7 @@ void ItineraryUrlHandler::addToCalendar(ItineraryMemento *memento) const
void ItineraryUrlHandler::openInApp(MimeTreeParser::Interface::BodyPart *part) const
{
const auto fileName = createItineraryFile(part);
auto *job = new KIO::ApplicationLauncherJob(KService::serviceByDesktopName(QStringLiteral("org.kde.itinerary")));
auto job = new KIO::ApplicationLauncherJob(KService::serviceByDesktopName(QStringLiteral("org.kde.itinerary")));
job->setUrls({QUrl::fromLocalFile(fileName)});
job->start();
}
......
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