DP:
1. _() calls added where needed. 2. const added in params in postscrp.[h,cpp] in order to compile with _(). 3. Some .cvsignore added. (I did not found any .cvsignore in repository, it is rather hard to compile something without them...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#endif
|
||||
|
||||
#include "wx/dynarray.h"
|
||||
#include <wx/intl.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h> // for memmove
|
||||
@@ -227,7 +228,7 @@ void wxBaseArray::Add(long lItem, CMPFUNC fnCompare)
|
||||
// add item at the given position
|
||||
void wxBaseArray::Insert(long lItem, uint uiIndex)
|
||||
{
|
||||
wxCHECK_RET( uiIndex <= m_uiCount, "bad index in wxArray::Insert" );
|
||||
wxCHECK_RET( uiIndex <= m_uiCount, _("bad index in wxArray::Insert") );
|
||||
|
||||
Grow();
|
||||
|
||||
@@ -240,7 +241,7 @@ void wxBaseArray::Insert(long lItem, uint uiIndex)
|
||||
// removes item from array (by index)
|
||||
void wxBaseArray::Remove(uint uiIndex)
|
||||
{
|
||||
wxCHECK_RET( uiIndex <= m_uiCount, "bad index in wxArray::Remove" );
|
||||
wxCHECK_RET( uiIndex <= m_uiCount, _("bad index in wxArray::Remove") );
|
||||
|
||||
memmove(&m_pItems[uiIndex], &m_pItems[uiIndex + 1],
|
||||
(m_uiCount - uiIndex - 1)*sizeof(long));
|
||||
@@ -253,7 +254,7 @@ void wxBaseArray::Remove(long lItem)
|
||||
int iIndex = Index(lItem);
|
||||
|
||||
wxCHECK_RET( iIndex != NOT_FOUND,
|
||||
"removing inexistent item in wxArray::Remove" );
|
||||
_("removing inexistent item in wxArray::Remove") );
|
||||
|
||||
Remove((uint)iIndex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user