summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-12 16:32:06 +0200
committerMontel Laurent <[email protected]>2017-04-12 16:32:06 +0200
commita9a3e06ce15fc1c8f4f471217c9cafa8d185363b (patch)
treeb82d009dfb22fd16aedb820dd2ed403339ac4a1b
parent30acbf31f6bce35817033e79cb3f1f851d014f0c (diff)
Use nullptr
-rw-r--r--src/akregator_part.cpp10
-rw-r--r--src/command/loadfeedlistcommand.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/akregator_part.cpp b/src/akregator_part.cpp
index 6c7e01e..2d1e3b5 100644
--- a/src/akregator_part.cpp
+++ b/src/akregator_part.cpp
@@ -209,9 +209,9 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList &)
, m_shuttingDown(false)
, m_doCrashSave(false)
, m_backedUpList(false)
- , m_mainWidget(0)
- , m_storage(0)
- , m_dialog(0)
+ , m_mainWidget(nullptr)
+ , m_storage(nullptr)
+ , m_dialog(nullptr)
{
mySelf = this;
@@ -239,9 +239,9 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList &)
}
loadPlugins(QStringLiteral("storage")); // FIXME: also unload them!
- m_storage = 0;
+ m_storage = nullptr;
Backend::StorageFactory *storageFactory = Backend::StorageFactoryRegistry::self()->getFactory(Settings::archiveBackend());
- if (storageFactory != 0) {
+ if (storageFactory != nullptr) {
m_storage = storageFactory->createStorage(QStringList());
}
diff --git a/src/command/loadfeedlistcommand.cpp b/src/command/loadfeedlistcommand.cpp
index 8414742..64e1890 100644
--- a/src/command/loadfeedlistcommand.cpp
+++ b/src/command/loadfeedlistcommand.cpp
@@ -48,7 +48,7 @@ class Q_DECL_HIDDEN LoadFeedListCommand::Private
{
LoadFeedListCommand *const q;
public:
- explicit Private(LoadFeedListCommand *qq) : q(qq), storage(0) {}
+ explicit Private(LoadFeedListCommand *qq) : q(qq), storage(nullptr) {}
void handleDocument(const QDomDocument &doc);
QString createBackup(const QString &path, bool *ok);
void emitResult(const QSharedPointer<FeedList> &list);