You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -42,10 +42,10 @@ HaikuDirectWindow::HaikuDirectWindow(BRect p_frame) :
|
||||
last_button_mask = 0;
|
||||
last_key_modifier_state = 0;
|
||||
|
||||
view = NULL;
|
||||
update_runner = NULL;
|
||||
input = NULL;
|
||||
main_loop = NULL;
|
||||
view = nullptr;
|
||||
update_runner = nullptr;
|
||||
input = nullptr;
|
||||
main_loop = nullptr;
|
||||
}
|
||||
|
||||
HaikuDirectWindow::~HaikuDirectWindow() {
|
||||
@@ -278,7 +278,7 @@ void HaikuDirectWindow::HandleKeyboardEvent(BMessage *message) {
|
||||
event->set_echo(message->HasInt32("be:key_repeat"));
|
||||
event->set_unicode(0);
|
||||
|
||||
const char *bytes = NULL;
|
||||
const char *bytes = nullptr;
|
||||
if (message->FindString("bytes", &bytes) == B_OK) {
|
||||
event->set_unicode(BUnicodeChar::FromUTF8(&bytes));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user