summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 05:47:14 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 05:47:14 (GMT)
commitf7dbed669675f038b40be7f84c3c72d7d83155d6 (patch)
tree6c2c10c74fab0414eb3b9f515aaa249dd622a150
parent2e5f83261f5b837bad43e0824e59aa14689b8c64 (diff)
use isEmpty
-rw-r--r--src/server/notificationsubscriber.cpp2
-rw-r--r--src/xml/xmlreader.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/notificationsubscriber.cpp b/src/server/notificationsubscriber.cpp
index ed5d348..c9bda38 100644
--- a/src/server/notificationsubscriber.cpp
+++ b/src/server/notificationsubscriber.cpp
@@ -363,7 +363,7 @@ bool NotificationSubscriber::acceptsItemNotification(const Protocol::ItemChangeN
{
// Assumes mLock being locked by caller
- if (notification.items().count() == 0) {
+ if (notification.items().isEmpty()) {
return false;
}
diff --git a/src/xml/xmlreader.cpp b/src/xml/xmlreader.cpp
index 8ec060f..c0274d1 100644
--- a/src/xml/xmlreader.cpp
+++ b/src/xml/xmlreader.cpp
@@ -29,7 +29,7 @@ using namespace Akonadi;
Attribute *XmlReader::elementToAttribute(const QDomElement &elem)
{
if (elem.isNull() || elem.tagName() != Format::Tag::attribute()) {
- return 0;
+ return Q_NULLPTR;
}
Attribute *attr = AttributeFactory::createAttribute(elem.attribute(Format::Attr::attributeType()).toUtf8());
Q_ASSERT(attr);