Commit 0f235923 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

auto * -> auto

parent 7a144e24
Pipeline #174801 passed with stage
in 6 minutes and 39 seconds
......@@ -129,7 +129,7 @@ DndFactory::~DndFactory() = default;
QMimeData *DndFactory::createMimeData()
{
auto *mimeData = new QMimeData;
auto mimeData = new QMimeData;
ICalDrag::populateMimeData(mimeData, d->mCalendar);
......@@ -138,7 +138,7 @@ QMimeData *DndFactory::createMimeData()
QDrag *DndFactory::createDrag(QObject *owner)
{
auto *drag = new QDrag(owner);
auto drag = new QDrag(owner);
drag->setMimeData(createMimeData());
return drag;
......@@ -152,7 +152,7 @@ QMimeData *DndFactory::createMimeData(const Incidence::Ptr &incidence)
i->setRecurrenceId({});
cal->addIncidence(i);
auto *mimeData = new QMimeData;
auto mimeData = new QMimeData;
ICalDrag::populateMimeData(mimeData, cal);
......@@ -169,7 +169,7 @@ QMimeData *DndFactory::createMimeData(const Incidence::Ptr &incidence)
QDrag *DndFactory::createDrag(const Incidence::Ptr &incidence, QObject *owner)
{
auto *drag = new QDrag(owner);
auto drag = new QDrag(owner);
drag->setMimeData(createMimeData(incidence));
drag->setPixmap(QIcon::fromTheme(incidence->iconName()).pixmap(KIconLoader::SizeSmallMedium));
......@@ -287,7 +287,7 @@ bool DndFactory::copyIncidences(const Incidence::List &incidences)
}
}
auto *mimeData = new QMimeData;
auto mimeData = new QMimeData;
ICalDrag::populateMimeData(mimeData, calendar);
......
......@@ -138,7 +138,7 @@ createDialog(QDialogButtonBox::StandardButtons buttons, const QString &caption,
{
QPointer<QDialog> dialog = new QDialog(parent);
dialog->setWindowTitle(caption);
auto *mainLayout = new QVBoxLayout();
auto mainLayout = new QVBoxLayout();
dialog->setLayout(mainLayout);
*buttonBox = new QDialogButtonBox(buttons, parent);
......@@ -167,7 +167,7 @@ int RecurrenceActions::questionMultipleChoice(const QDateTime &selectedOccurrenc
QWidget *parent)
{
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Ok | QDialogButtonBox::Cancel;
auto *widget = new ScopeWidget(availableChoices, selectedOccurrence, nullptr);
auto widget = new ScopeWidget(availableChoices, selectedOccurrence, nullptr);
QDialogButtonBox *buttonBox = nullptr;
auto dialog = createDialog(buttons, caption, widget, &buttonBox, parent);
......
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