[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kmail] /: Use nullptr
From: Laurent Montel <null () kde ! org>
Date: 2018-06-27 11:35:44
Message-ID: E1fY8jg-0001j0-Sd () code ! kde ! org
[Download RAW message or body]
Git commit a1851d79ac7487febe08d554f269664e3c923029 by Laurent Montel.
Committed on 27/06/2018 at 11:35.
Pushed by mlaurent into branch 'master'.
Use nullptr
M +1 -1 agents/archivemailagent/archivemailwidget.cpp
M +2 -2 ktnef/src/attachpropertydialog.cpp
M +1 -1 ktnef/src/ktnefmain.cpp
M +1 -1 src/autotests/tagselectdialogtest.cpp
https://commits.kde.org/kmail/a1851d79ac7487febe08d554f269664e3c923029
diff --git a/agents/archivemailagent/archivemailwidget.cpp \
b/agents/archivemailagent/archivemailwidget.cpp index a8951d574..09754e8c2 100644
--- a/agents/archivemailagent/archivemailwidget.cpp
+++ b/agents/archivemailagent/archivemailwidget.cpp
@@ -41,7 +41,7 @@ inline QString archiveMailCollectionPattern()
ArchiveMailItem::ArchiveMailItem(QTreeWidget *parent)
: QTreeWidgetItem(parent)
- , mInfo(0)
+ , mInfo(nullptr)
{
}
diff --git a/ktnef/src/attachpropertydialog.cpp b/ktnef/src/attachpropertydialog.cpp
index 030861322..9cc88eeb0 100644
--- a/ktnef/src/attachpropertydialog.cpp
+++ b/ktnef/src/attachpropertydialog.cpp
@@ -159,12 +159,12 @@ void AttachPropertyDialog::formatProperties(const QMap<int, \
KTNEFProperty *> &pr
void AttachPropertyDialog::formatPropertySet(KTNEFPropertySet *pSet, QTreeWidget \
*lv) {
- formatProperties(pSet->properties(), lv, 0, QStringLiteral("prop"));
+ formatProperties(pSet->properties(), lv, nullptr, QStringLiteral("prop"));
QTreeWidgetItem *item
= new QTreeWidgetItem(lv,
QStringList(i18nc("@label", "TNEF Attributes")));
item->setExpanded(true);
- formatProperties(pSet->attributes(), 0, item, QStringLiteral("attr"));
+ formatProperties(pSet->attributes(), nullptr, item, QStringLiteral("attr"));
}
bool AttachPropertyDialog::saveProperty(QTreeWidget *lv, KTNEFPropertySet *pSet, \
QWidget *parent)
diff --git a/ktnef/src/ktnefmain.cpp b/ktnef/src/ktnefmain.cpp
index e48f0ec93..c34f5ecad 100644
--- a/ktnef/src/ktnefmain.cpp
+++ b/ktnef/src/ktnefmain.cpp
@@ -429,7 +429,7 @@ void KTNEFMain::contextMenuEvent(QContextMenuEvent *event)
i18nc("@action:inmenu", "Properties"));
}
- QAction *a = menu.exec(event->globalPos(), 0);
+ QAction *a = menu.exec(event->globalPos(), nullptr);
if (a) {
if (a == extract) {
extractFile();
diff --git a/src/autotests/tagselectdialogtest.cpp \
b/src/autotests/tagselectdialogtest.cpp index 54ef9f53e..777b737d3 100644
--- a/src/autotests/tagselectdialogtest.cpp
+++ b/src/autotests/tagselectdialogtest.cpp
@@ -38,7 +38,7 @@ void TagSelectDialogTest::initTestCase()
void TagSelectDialogTest::shouldHaveDefaultValue()
{
- TagSelectDialog dlg(0, 1, Akonadi::Item());
+ TagSelectDialog dlg(nullptr, 1, Akonadi::Item());
QListWidget *listWidget = dlg.findChild<QListWidget \
*>(QStringLiteral("listtag")); QVERIFY(listWidget);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic