aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-11-01 10:10:27 +0100
committerMontel Laurent <[email protected]>2017-11-01 10:10:27 +0100
commitf66a9c56db795ee62a2c4231b721968f963765e3 (patch)
tree77ad50a3b8bca26d306ef831d51f17a61258c152
parenta47bd35270cf67660a1dd4b2d02b3237ba847707 (diff)
Use nullptr
-rw-r--r--autotests/private/protocoltest.h2
-rw-r--r--src/server/storage/entities-header.xsl2
2 files changed, 2 insertions, 2 deletions
diff --git a/autotests/private/protocoltest.h b/autotests/private/protocoltest.h
index 028c71f..629b19d 100644
--- a/autotests/private/protocoltest.h
+++ b/autotests/private/protocoltest.h
@@ -77,7 +77,7 @@ private:
template<typename T>
typename std::enable_if<std::is_base_of<Akonadi::Protocol::Command, T>::value == false, T>::type
- serializeAndDeserialize(const T &in, int * = 0)
+ serializeAndDeserialize(const T &in, int * = nullptr)
{
QBuffer buf;
buf.open(QIODevice::ReadWrite);
diff --git a/src/server/storage/entities-header.xsl b/src/server/storage/entities-header.xsl
index fc471aa..8a380bc 100644
--- a/src/server/storage/entities-header.xsl
+++ b/src/server/storage/entities-header.xsl
@@ -198,7 +198,7 @@ class <xsl:value-of select="$className"/> : private Entity
Inserts this record into the DataStore.
@param insertId pointer to an int, filled with the identifier of this record on success.
*/
- bool insert( qint64* insertId = 0 );
+ bool insert( qint64 *insertId = nullptr );
/**
Returns @c true if this record has any pending changes.