Commit 6db9b20a authored by Sandro Knauß's avatar Sandro Knauß

use Q_NULLPTR

parent 395e639d
......@@ -96,7 +96,7 @@ ObjectTreeParser::ObjectTreeParser(Interface::ObjectTreeSource *source,
const AttachmentStrategy *strategy)
: mSource(source),
mNodeHelper(nodeHelper),
mHtmlWriter(0),
mHtmlWriter(Q_NULLPTR),
mTopLevelContent(0),
mShowOnlyOneMimePart(showOnlyOneMimePart),
mHasPendingAsyncJobs(false),
......@@ -141,7 +141,7 @@ ObjectTreeParser::~ObjectTreeParser()
{
if (mDeleteNodeHelper) {
delete mNodeHelper;
mNodeHelper = 0;
mNodeHelper = Q_NULLPTR;
}
}
......@@ -235,7 +235,7 @@ bool ObjectTreeParser::processType(KMime::Content *node, ProcessResult &processR
bRendered = true;
break;
} else if (dynamic_cast<MimeTreeParser::Interface::MessagePart *>(result.data())) {
QObject *asyncResultObserver = allowAsync() ? mSource->sourceObject() : 0;
QObject *asyncResultObserver = allowAsync() ? mSource->sourceObject() : Q_NULLPTR;
const auto r = formatter->format(&part, htmlWriter(), asyncResultObserver);
if (r == Interface::BodyPartFormatter::AsIcon) {
processResult.setNeverDisplayInline(true);
......
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