mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Use '\0'
instead of 0
for char
s
This commit is contained in:
parent
09462cff67
commit
6f033e41ba
|
@ -33,7 +33,7 @@ void CInput::AddEvent(char *pText, int Key, int Flags)
|
|||
m_aInputEvents[m_NumEvents].m_Key = Key;
|
||||
m_aInputEvents[m_NumEvents].m_Flags = Flags;
|
||||
if(pText == nullptr)
|
||||
m_aInputEvents[m_NumEvents].m_aText[0] = 0;
|
||||
m_aInputEvents[m_NumEvents].m_aText[0] = '\0';
|
||||
else
|
||||
str_copy(m_aInputEvents[m_NumEvents].m_aText, pText);
|
||||
m_aInputEvents[m_NumEvents].m_InputCount = m_InputCounter;
|
||||
|
@ -61,9 +61,9 @@ CInput::CInput()
|
|||
|
||||
m_NumTextInputInstances = 0;
|
||||
m_EditingTextLen = -1;
|
||||
m_aEditingText[0] = 0;
|
||||
m_aEditingText[0] = '\0';
|
||||
|
||||
m_aDropFile[0] = 0;
|
||||
m_aDropFile[0] = '\0';
|
||||
}
|
||||
|
||||
void CInput::Init()
|
||||
|
@ -612,7 +612,7 @@ int CInput::Update()
|
|||
}
|
||||
else
|
||||
{
|
||||
m_aEditingText[0] = 0;
|
||||
m_aEditingText[0] = '\0';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue