wxCHECK/wxCHECK_RET changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -179,7 +179,7 @@ void wxBaseArray::Add(long lItem)
|
||||
// add item at the given position
|
||||
void wxBaseArray::Insert(long lItem, uint uiIndex)
|
||||
{
|
||||
wxCHECK( uiIndex <= m_uiCount );
|
||||
wxCHECK_RET( uiIndex <= m_uiCount, "bad index in wxArray::Insert" );
|
||||
|
||||
Grow();
|
||||
|
||||
@@ -192,7 +192,7 @@ void wxBaseArray::Insert(long lItem, uint uiIndex)
|
||||
// removes item from array (by index)
|
||||
void wxBaseArray::Remove(uint uiIndex)
|
||||
{
|
||||
wxCHECK( uiIndex <= m_uiCount );
|
||||
wxCHECK_RET( uiIndex <= m_uiCount, "bad index in wxArray::Remove" );
|
||||
|
||||
memmove(&m_pItems[uiIndex], &m_pItems[uiIndex + 1],
|
||||
(m_uiCount - uiIndex - 1)*sizeof(long));
|
||||
@@ -204,7 +204,8 @@ void wxBaseArray::Remove(long lItem)
|
||||
{
|
||||
int iIndex = Index(lItem);
|
||||
|
||||
wxCHECK( iIndex != NOT_FOUND );
|
||||
wxCHECK_RET( iIndex != NOT_FOUND,
|
||||
"removing inexistent item in wxArray::Remove" );
|
||||
|
||||
Remove((uint)iIndex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user