You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
#include "core/project_settings.h"
|
||||
|
||||
int32_t *AudioDriverMediaKit::samples_in = NULL;
|
||||
int32_t *AudioDriverMediaKit::samples_in = nullptr;
|
||||
|
||||
Error AudioDriverMediaKit::init() {
|
||||
active = false;
|
||||
@@ -59,12 +59,12 @@ Error AudioDriverMediaKit::init() {
|
||||
&format,
|
||||
"godot_sound_server",
|
||||
AudioDriverMediaKit::PlayBuffer,
|
||||
NULL,
|
||||
nullptr,
|
||||
this);
|
||||
|
||||
if (player->InitCheck() != B_OK) {
|
||||
fprintf(stderr, "MediaKit ERR: can not create a BSoundPlayer instance\n");
|
||||
ERR_FAIL_COND_V(player == NULL, ERR_CANT_OPEN);
|
||||
ERR_FAIL_COND_V(player == nullptr, ERR_CANT_OPEN);
|
||||
}
|
||||
|
||||
player->Start();
|
||||
@@ -126,7 +126,7 @@ void AudioDriverMediaKit::finish() {
|
||||
}
|
||||
|
||||
AudioDriverMediaKit::AudioDriverMediaKit() {
|
||||
player = NULL;
|
||||
player = nullptr;
|
||||
}
|
||||
|
||||
AudioDriverMediaKit::~AudioDriverMediaKit() {
|
||||
|
||||
Reference in New Issue
Block a user