Commit a294281a authored by Laurent Montel's avatar Laurent Montel 😁

Use nullptr

parent c152a3fc
......@@ -54,14 +54,14 @@ TEMPLATE_TYPENAME(T)
inline T *lvi_cast(QTreeWidgetItem *item)
{
return item && (item->type() == T::RTTI)
? static_cast<T *>(item) : 0;
? static_cast<T *>(item) : nullptr;
}
TEMPLATE_TYPENAME(T)
inline const T *lvi_cast(const QTreeWidgetItem *item)
{
return item && (item->type() == T::RTTI)
? static_cast<const T *>(item) : 0;
? static_cast<const T *>(item) : nullptr;
}
#undef TEMPLATE_TYPENAME
......
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