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

GIT_SILENT: Port auto *foo => auto foo when possible

parent c1b26e49
Pipeline #50009 skipped
......@@ -149,7 +149,7 @@ void AttachPropertyDialog::formatProperties(const QMap<int, KTNEFProperty *> &pr
void AttachPropertyDialog::formatPropertySet(KTNEFPropertySet *pSet, QTreeWidget *lv)
{
formatProperties(pSet->properties(), lv, nullptr, QStringLiteral("prop"));
auto *item = new QTreeWidgetItem(lv, QStringList(i18nc("@label", "TNEF Attributes")));
auto item = new QTreeWidgetItem(lv, QStringList(i18nc("@label", "TNEF Attributes")));
item->setExpanded(true);
formatProperties(pSet->attributes(), nullptr, item, QStringLiteral("attr"));
}
......
......@@ -864,7 +864,7 @@ ComposerPageHeadersTab::ComposerPageHeadersTab(QWidget *parent)
mMessageIdSuffixEdit = new QLineEdit(this);
mMessageIdSuffixEdit->setClearButtonEnabled(true);
// only ASCII letters, digits, plus, minus and dots are allowed
auto *messageIdSuffixValidator = new QRegularExpressionValidator(QRegularExpression(QStringLiteral("[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*")), this);
auto messageIdSuffixValidator = new QRegularExpressionValidator(QRegularExpression(QStringLiteral("[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*")), this);
mMessageIdSuffixEdit->setValidator(messageIdSuffixValidator);
auto label = new QLabel(i18n("Custom message-&id suffix:"), this);
label->setBuddy(mMessageIdSuffixEdit);
......
......@@ -118,7 +118,7 @@ void AttachmentController::onShowAttachment(KMime::Content *content, const QByte
win->showMessage(charsetStr, m);
win->show();
} else {
auto *win = new KMReaderMainWin(content, MessageViewer::Viewer::Text, charsetStr);
auto win = new KMReaderMainWin(content, MessageViewer::Viewer::Text, charsetStr);
win->show();
}
}
......
......@@ -34,7 +34,7 @@ CreateNewContactJob::~CreateNewContactJob() = default;
void CreateNewContactJob::start()
{
auto *const addressBookJob = new Akonadi::CollectionFetchJob(Akonadi::Collection::root(), Akonadi::CollectionFetchJob::Recursive);
auto const addressBookJob = new Akonadi::CollectionFetchJob(Akonadi::Collection::root(), Akonadi::CollectionFetchJob::Recursive);
addressBookJob->fetchScope().setContentMimeTypes(QStringList() << KContacts::Addressee::mimeType());
connect(addressBookJob, &KJob::result, this, &CreateNewContactJob::slotCollectionsFetched);
......
......@@ -35,7 +35,7 @@ Q_DECL_EXPORT KCModule *create_kmail_config_misc(QWidget *parent, const char *)
extern "C" {
Q_DECL_EXPORT KCModule *create_kmail_config_appearance(QWidget *parent, const char *)
{
auto *page = new AppearancePage(parent);
auto page = new AppearancePage(parent);
page->setObjectName(QStringLiteral("kcmkmail_config_appearance"));
return page;
}
......
......@@ -4643,7 +4643,7 @@ void KMMainWidget::printCurrentMessage(bool preview)
commandInfo.mShowEncryptionDetails =
messageView()->viewer()->showEncryptionDetails() || MessageViewer::MessageViewerSettings::self()->alwaysShowEncryptionSignatureDetails();
auto *command = new KMPrintCommand(this, commandInfo);
auto command = new KMPrintCommand(this, commandInfo);
command->start();
}
}
......
......@@ -38,7 +38,7 @@ KMailPlugin::KMailPlugin(KontactInterface::Core *core, const QVariantList &)
{
setComponentName(QStringLiteral("kmail2"), i18n("KMail2"));
auto *action = new QAction(QIcon::fromTheme(QStringLiteral("mail-message-new")), i18nc("@action:inmenu", "New Message..."), this);
auto action = new QAction(QIcon::fromTheme(QStringLiteral("mail-message-new")), i18nc("@action:inmenu", "New Message..."), this);
actionCollection()->addAction(QStringLiteral("new_mail"), action);
actionCollection()->setDefaultShortcut(action, QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_M));
// action->setHelpText(
......@@ -49,7 +49,7 @@ KMailPlugin::KMailPlugin(KontactInterface::Core *core, const QVariantList &)
connect(action, &QAction::triggered, this, &KMailPlugin::slotNewMail);
insertNewAction(action);
auto *syncAction = new QAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18nc("@action:inmenu", "Sync Mail"), this);
auto syncAction = new QAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18nc("@action:inmenu", "Sync Mail"), this);
// syncAction->setHelpText(
// i18nc( "@info:status", "Synchronize groupware mail" ) );
syncAction->setWhatsThis(i18nc("@info:whatsthis", "Choose this option to synchronize your groupware email."));
......
......@@ -79,7 +79,7 @@ KCMKontactSummary::KCMKontactSummary(QWidget *parent)
auto layout = new QVBoxLayout(this);
layout->setContentsMargins({});
auto *label = new QLabel(i18n("Select the plugin summaries to show on the summary page."), this);
auto label = new QLabel(i18n("Select the plugin summaries to show on the summary page."), this);
layout->addWidget(label);
mPluginView = new PluginView(this);
......
......@@ -84,7 +84,7 @@ void ManageShowCollectionProperties::showCollectionProperties(const QString &pag
progressItem->setUsesBusyIndicator(true);
progressItem->setCryptoStatus(KPIM::ProgressItem::Unknown);
auto *sync = new Akonadi::CollectionAttributesSynchronizationJob(col);
auto sync = new Akonadi::CollectionAttributesSynchronizationJob(col);
sync->setProperty("collectionId", id);
sync->setProperty("pageToShow", pageToShow); // note for dialog later
sync->setProperty("progressItem", QVariant::fromValue(progressItem));
......@@ -108,7 +108,7 @@ void ManageShowCollectionProperties::slotCollectionPropertiesContinued(KJob *job
QPointer<KPIM::ProgressItem> progressItem;
if (job) {
auto *sync = qobject_cast<Akonadi::CollectionAttributesSynchronizationJob *>(job);
auto sync = qobject_cast<Akonadi::CollectionAttributesSynchronizationJob *>(job);
Q_ASSERT(sync);
if (sync->property("collectionId") != mMainWidget->currentCollection().id()) {
return;
......
......@@ -600,7 +600,7 @@ void MessageActions::printMessage(bool preview)
commandInfo.mShowEncryptionDetails =
mMessageView->viewer()->showEncryptionDetails() || MessageViewer::MessageViewerSettings::self()->alwaysShowEncryptionSignatureDetails();
auto *command = new KMPrintCommand(mParent, commandInfo);
auto command = new KMPrintCommand(mParent, commandInfo);
command->start();
}
} else {
......
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