Commit 1f29b4f4 authored by Laurent Montel's avatar Laurent Montel 😁

Use nullptr

parent 751d78f8
......@@ -42,34 +42,34 @@ public:
virtual bool setItemsFlags(const PimItem::List &items,
const QVector<Flag> &flags,
bool *flagsChanged = 0,
bool *flagsChanged = nullptr,
const Collection &col = Collection(),
bool silent = false) Q_DECL_OVERRIDE;
virtual bool appendItemsFlags(const PimItem::List &items,
const QVector<Flag> &flags,
bool *flagsChanged = 0,
bool *flagsChanged = nullptr,
bool checkIfExists = true,
const Collection &col = Collection(),
bool silent = false) Q_DECL_OVERRIDE;
virtual bool removeItemsFlags(const PimItem::List &items,
const QVector<Flag> &flags,
bool *flagsChanged = 0,
bool *flagsChanged = nullptr,
const Collection &col = Collection(),
bool silent = false) Q_DECL_OVERRIDE;
virtual bool setItemsTags(const PimItem::List &items,
const Tag::List &tags,
bool *tagsChanged = 0,
bool *tagsChanged = nullptr,
bool silent = false) Q_DECL_OVERRIDE;
virtual bool appendItemsTags(const PimItem::List &items,
const Tag::List &tags,
bool *tagsChanged = 0,
bool *tagsChanged = nullptr,
bool checkIfExists = true,
const Collection &col = Collection(),
bool silent = false) Q_DECL_OVERRIDE;
virtual bool removeItemsTags(const PimItem::List &items,
const Tag::List &tags,
bool *tagsChanged = 0,
bool *tagsChanged = nullptr,
bool silent = false) Q_DECL_OVERRIDE;
virtual bool removeItemParts(const PimItem &item,
......
......@@ -25,8 +25,8 @@
using namespace Akonadi;
static AkonadiConnection *s_connection = 0;
static DataStore *s_backend = 0;
static AkonadiConnection *s_connection = nullptr;
static DataStore *s_backend = nullptr;
class MockConnection : public AkonadiConnection
{
......
......@@ -91,7 +91,7 @@ public:
t = 0;
return r;
}
void reset(T *other = 0)
void reset(T *other = nullptr)
{
delete t;
t = other;
......
......@@ -114,7 +114,7 @@ public:
@param ok Set to false if the parsing failed.
@param start Start parsing at this index.
*/
static int parseNumber(const QByteArray &data, qint64 &result, bool *ok = 0, int start = 0);
static int parseNumber(const QByteArray &data, qint64 &result, bool *ok = nullptr, int start = 0);
/**
Quotes the given QByteArray.
......
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