mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +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_Key = Key;
|
||||||
m_aInputEvents[m_NumEvents].m_Flags = Flags;
|
m_aInputEvents[m_NumEvents].m_Flags = Flags;
|
||||||
if(pText == nullptr)
|
if(pText == nullptr)
|
||||||
m_aInputEvents[m_NumEvents].m_aText[0] = 0;
|
m_aInputEvents[m_NumEvents].m_aText[0] = '\0';
|
||||||
else
|
else
|
||||||
str_copy(m_aInputEvents[m_NumEvents].m_aText, pText);
|
str_copy(m_aInputEvents[m_NumEvents].m_aText, pText);
|
||||||
m_aInputEvents[m_NumEvents].m_InputCount = m_InputCounter;
|
m_aInputEvents[m_NumEvents].m_InputCount = m_InputCounter;
|
||||||
|
@ -61,9 +61,9 @@ CInput::CInput()
|
||||||
|
|
||||||
m_NumTextInputInstances = 0;
|
m_NumTextInputInstances = 0;
|
||||||
m_EditingTextLen = -1;
|
m_EditingTextLen = -1;
|
||||||
m_aEditingText[0] = 0;
|
m_aEditingText[0] = '\0';
|
||||||
|
|
||||||
m_aDropFile[0] = 0;
|
m_aDropFile[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInput::Init()
|
void CInput::Init()
|
||||||
|
@ -612,7 +612,7 @@ int CInput::Update()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_aEditingText[0] = 0;
|
m_aEditingText[0] = '\0';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue