From 4e104f3640aedf2c7ac631a38474e4eb7c727c6a Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 5 Oct 2025 14:02:23 -0500 Subject: [PATCH] chore(ui): use nullptr in CSimpleEditBox RunScript calls --- src/ui/CSimpleEditBox.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/CSimpleEditBox.cpp b/src/ui/CSimpleEditBox.cpp index b8ce768..b6ba190 100644 --- a/src/ui/CSimpleEditBox.cpp +++ b/src/ui/CSimpleEditBox.cpp @@ -1021,19 +1021,19 @@ void CSimpleEditBox::RunOnCursorChangedScript(float x, float y, float w, float h void CSimpleEditBox::RunOnEditFocusGainedScript() { if (this->m_onEditFocusGained.luaRef) { - this->RunScript(this->m_onEditFocusGained, 0, 0); + this->RunScript(this->m_onEditFocusGained, 0, nullptr); } } void CSimpleEditBox::RunOnEditFocusLostScript() { if (this->m_onEditFocusLost.luaRef) { - this->RunScript(this->m_onEditFocusLost, 0, 0); + this->RunScript(this->m_onEditFocusLost, 0, nullptr); } } void CSimpleEditBox::RunOnEnterPressedScript() { if (this->m_onEnterPressed.luaRef) { - this->RunScript(this->m_onEnterPressed, 0, 0); + this->RunScript(this->m_onEnterPressed, 0, nullptr); } } @@ -1054,7 +1054,7 @@ void CSimpleEditBox::RunOnTextChangedScript(int32_t changed) { auto L = FrameScript_GetContext(); lua_pushboolean(L, changed); - this->RunScript(this->m_onTextChanged, 1, 0); + this->RunScript(this->m_onTextChanged, 1, nullptr); } }