Commit a45762a9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use nullptr

parent 09766850
......@@ -112,7 +112,7 @@ public:
{
auto main_func = mainFunc(type, T_config::mainfunc);
if (!main_func) {
return 0;
return nullptr;
}
// cast to a pointer to a function returning T*, call it and
......
......@@ -502,7 +502,7 @@ QAbstractItemModel *Viewer::messageTreeModel() const
#ifndef QT_NO_TREEVIEW
return d_func()->mMimePartTree->mimePartModel();
#else
return 0;
return nullptr;
#endif
}
......
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