core: Fix clang-tidy modernize-use-nullptr warning

This commit is contained in:
Eduardo Almeida
2023-10-19 22:29:07 +01:00
parent ca946d3549
commit 96d7587845

View File

@@ -776,9 +776,9 @@ Ptr<T>::operator*()
template <typename T>
Ptr<T>::operator Tester*() const // NS_DEPRECATED_3_37
{
if (m_ptr == 0)
if (m_ptr == nullptr)
{
return 0;
return nullptr;
}
static Tester test;
return &test;