Use more nullptr

parent de3c9be6
......@@ -50,7 +50,7 @@ static xmlNode* findChildElement( xmlNode *node, const char *name )
return n->children;
}
}
return 0;
return nullptr;
}
static void collectText( xmlNode *node, QByteArray *text )
......@@ -67,7 +67,7 @@ static void collectText( xmlNode *node, QByteArray *text )
bool htmlTextDump( const QByteArray& data, QByteArray *title, QByteArray *text )
{
HtmlDocPtr doc( htmlReadMemory( data.constData(), data.length(), NULL, "UTF-8", HTML_PARSE_RECOVER | HTML_PARSE_NOERROR | HTML_PARSE_NOWARNING | HTML_PARSE_NONET ) );
HtmlDocPtr doc( htmlReadMemory( data.constData(), data.length(), nullptr, "UTF-8", HTML_PARSE_RECOVER | HTML_PARSE_NOERROR | HTML_PARSE_NOWARNING | HTML_PARSE_NONET ) );
if ( !doc ) {
qCWarning(LOG) << "cannot parse html";
return false;
......
......@@ -89,7 +89,7 @@ static void analyzeFile( const QFileInfo& cacheFile, const QString& relPath, con
Xapian::Document doc = db.get_document( *it );
std::string doc_lang;
std::string html;
getDocInfo( doc, &doc_lang, 0, &html );
getDocInfo( doc, &doc_lang, nullptr, &html );
// skip versions of this cache in different languages
if ( doc_lang.empty() || doc_lang != lang ) {
continue;
......
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