Commit a9a3e06c authored by Laurent Montel's avatar Laurent Montel 😁

Use nullptr

parent 30acbf31
......@@ -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());
}
......
......@@ -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);
......
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