wxAcceleratorRefData::wxAcceleratorRefData()
{
m_count = 0;
- m_entries = (wxAcceleratorEntry*) NULL;
+ m_entries = NULL;
}
wxAcceleratorRefData::~wxAcceleratorRefData()
{
- delete[] m_entries;
- m_entries = (wxAcceleratorEntry*) NULL;
+ wxDELETEA(m_entries);
m_count = 0;
}
wxAcceleratorTable::wxAcceleratorTable()
{
- m_refData = (wxAcceleratorRefData*) NULL;
+ m_refData = NULL;
}
wxAcceleratorTable::~wxAcceleratorTable()
bool wxAcceleratorTable::IsOk() const
{
- return (m_refData != (wxAcceleratorRefData*) NULL);
+ return (m_refData != NULL);
}
int wxAcceleratorTable::GetCount() const
bool accShiftDown = ((GetFlags() & wxACCEL_SHIFT) == wxACCEL_SHIFT);
int accKeyCode = GetKeyCode();
int accKeyCode2 = GetKeyCode();
- if (isascii(accKeyCode2))
- accKeyCode2 = tolower(accKeyCode2);
+ if (wxIsascii(accKeyCode2))
+ accKeyCode2 = wxTolower(accKeyCode2);
return ((eventAltDown == accAltDown) && (eventCtrlDown == accCtrlDown) &&
(eventShiftDown == accShiftDown) &&