1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Use the "nullptr" literal.

"nullptr" should be used to denote the null pointer
This commit is contained in:
Alexander Wilms
2023-10-27 15:10:54 +00:00
parent 70acf987b4
commit f01ec55d21
19 changed files with 25 additions and 25 deletions

View File

@@ -54,7 +54,7 @@ struct VectorizedObjectInfo
class DLL_LINKAGE CSerializer
{
template<typename T>
static si32 idToNumber(const T &t, typename std::enable_if<std::is_convertible<T,si32>::value>::type * dummy = 0)
static si32 idToNumber(const T &t, typename std::enable_if<std::is_convertible<T,si32>::value>::type * dummy = nullptr)
{
return t;
}