chore(UnityPyBoost): replace all NULL with nullptr · roundRekt/UnityPy@e5c30db · GitHub
Skip to content

Commit e5c30db

Browse files
committed
chore(UnityPyBoost): replace all NULL with nullptr
1 parent 9a7c0ab commit e5c30db

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎UnityPyBoost/ArchiveStorageDecryptor.cpp‎

Lines changed: 4 additions & 4 deletions

‎UnityPyBoost/Mesh.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ PyObject *unpack_vertexdata(PyObject *self, PyObject *args)
3939
{
4040
PyBuffer_Release(&vertexDataView);
4141
}
42-
return NULL;
42+
return nullptr;
4343
}
4444

4545
uint8_t *vertexData = (uint8_t *)vertexDataView.buf;
@@ -52,14 +52,14 @@ PyObject *unpack_vertexdata(PyObject *self, PyObject *args)
5252
{
5353
PyBuffer_Release(&vertexDataView);
5454
PyErr_SetString(PyExc_ValueError, "Vertex data access out of bounds");
55-
return NULL;
55+
return nullptr;
5656
}
5757

5858
PyObject *res = PyBytes_FromStringAndSize(nullptr, componentBytesLength);
5959
if (!res)
6060
{
6161
PyBuffer_Release(&vertexDataView);
62-
return NULL;
62+
return nullptr;
6363
}
6464
uint8_t *componentBytes = (uint8_t *)PyBytes_AS_STRING(res);
6565

@@ -102,7 +102,7 @@ PyObject *unpack_vertexdata(PyObject *self, PyObject *args)
102102
// uint32_t itemCount = componentBytesLength / componentByteSize;
103103
// PyObject *lst = PyList_New(itemCount);
104104
// if (!lst)
105-
// return NULL;
105+
// return nullptr;
106106

107107
// switch (format)
108108
// {
@@ -124,7 +124,7 @@ PyObject *unpack_vertexdata(PyObject *self, PyObject *args)
124124
// double x = _PyFloat_Unpack2(items++, 0);
125125
// if (x == -1.0 && PyErr_Occurred())
126126
// {
127-
// return NULL;
127+
// return nullptr;
128128
// }
129129
// PyList_SetItem(lst, i, PyFloat_FromDouble(x));
130130
// }

‎UnityPyBoost/UnityPyBoost.cpp‎

Lines changed: 7 additions & 7 deletions

0 commit comments

Comments
 (0)