Use '\0' instead of 0 for chars

This commit is contained in:
Robert Müller 2023-04-21 18:40:03 +02:00
parent 09462cff67
commit 6f033e41ba

View file

@ -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;
}