You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -212,7 +212,7 @@ void AudioStreamPreviewGenerator::_bind_methods() {
|
||||
ADD_SIGNAL(MethodInfo("preview_updated", PropertyInfo(Variant::INT, "obj_id")));
|
||||
}
|
||||
|
||||
AudioStreamPreviewGenerator *AudioStreamPreviewGenerator::singleton = NULL;
|
||||
AudioStreamPreviewGenerator *AudioStreamPreviewGenerator::singleton = nullptr;
|
||||
|
||||
void AudioStreamPreviewGenerator::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_PROCESS) {
|
||||
@@ -221,7 +221,7 @@ void AudioStreamPreviewGenerator::_notification(int p_what) {
|
||||
if (!E->get().generating) {
|
||||
if (E->get().thread) {
|
||||
Thread::wait_to_finish(E->get().thread);
|
||||
E->get().thread = NULL;
|
||||
E->get().thread = nullptr;
|
||||
}
|
||||
if (!ObjectDB::get_instance(E->key())) { //no longer in use, get rid of preview
|
||||
to_erase.push_back(E->key());
|
||||
|
||||
Reference in New Issue
Block a user