// Author: Julian Smart
// Modified by:
// Created: 17/09/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
{
if (wxStrcmp( argV[i], wxT("-display") ) == 0)
{
- if (i < (argC - 1))
+ if (i < (argCOrig - 1))
{
argV[i++] = NULL;
}
else if (wxStrcmp( argV[i], wxT("-geometry") ) == 0)
{
- if (i < (argC - 1))
+ if (i < (argCOrig - 1))
{
argV[i++] = NULL;
if ( argC != argCOrig )
{
- // remove the argumens we consumed
+ // remove the arguments we consumed
for ( int i = 0; i < argC; i++ )
{
while ( !argV[i] )
{
- memmove(argV + i, argV + i + 1, argCOrig - i);
+ memmove(argV + i, argV + i + 1, (argCOrig - i)*sizeof(wxChar *));
}
}
}
void wxApp::CleanUp()
{
- delete wxWidgetHashTable;
- wxWidgetHashTable = NULL;
- delete wxClientWidgetHashTable;
- wxClientWidgetHashTable = NULL;
+ wxDELETE(wxWidgetHashTable);
+ wxDELETE(wxClientWidgetHashTable);
wxAppBase::CleanUp();
}
// If we only have one X11 window, always indicate
// that borders might have to be redrawn.
- if (win->GetMainWindow() == win->GetClientAreaWindow())
+ if (win->X11GetMainWindow() == win->GetClientAreaWindow())
win->NeedUpdateNcAreaInIdle();
// Only erase background, paint in idle time.