mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 19:11:36 +08:00
[cpp] Closes #1736, remove nullptr usage.
This commit is contained in:
parent
6c5948ab0b
commit
1662ebea4f
@ -120,7 +120,7 @@ Json::Json(const char *value) :
|
||||
}
|
||||
|
||||
Json::~Json() {
|
||||
spine::Json* curr = nullptr;
|
||||
spine::Json* curr = NULL;
|
||||
spine::Json* next = _child;
|
||||
do {
|
||||
curr = next;
|
||||
|
||||
@ -380,7 +380,7 @@ char *SkeletonBinary::readString(DataInput *input) {
|
||||
|
||||
char* SkeletonBinary::readStringRef(DataInput* input, SkeletonData* skeletonData) {
|
||||
int index = readVarint(input, true);
|
||||
return index == 0 ? nullptr : skeletonData->_strings[index - 1];
|
||||
return index == 0 ? NULL : skeletonData->_strings[index - 1];
|
||||
}
|
||||
|
||||
float SkeletonBinary::readFloat(DataInput *input) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user