minor OS/2 VA 3.0 #ifdefs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -674,7 +674,9 @@ void wxImage::CleanUpHandlers()
|
|||||||
wxImageHandler *handler = (wxImageHandler *)node->Data();
|
wxImageHandler *handler = (wxImageHandler *)node->Data();
|
||||||
wxNode *next = node->Next();
|
wxNode *next = node->Next();
|
||||||
delete handler;
|
delete handler;
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
delete node;
|
delete node;
|
||||||
|
#endif
|
||||||
node = next;
|
node = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -373,7 +373,9 @@ void wxListBase::DoDeleteNode(wxNodeBase *node)
|
|||||||
|
|
||||||
// so that the node knows that it's being deleted by the list
|
// so that the node knows that it's being deleted by the list
|
||||||
node->m_list = NULL;
|
node->m_list = NULL;
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
delete node;
|
delete node;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
wxNodeBase *wxListBase::DetachNode(wxNodeBase *node)
|
wxNodeBase *wxListBase::DetachNode(wxNodeBase *node)
|
||||||
@@ -532,7 +534,9 @@ void wxListBase::Sort(const wxSortCompareFunction compfunc)
|
|||||||
|
|
||||||
void wxObjectListNode::DeleteData()
|
void wxObjectListNode::DeleteData()
|
||||||
{
|
{
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
delete (wxObject *)GetData();
|
delete (wxObject *)GetData();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
@@ -363,7 +363,10 @@ void wxObject::UnRef()
|
|||||||
wxASSERT_MSG( m_refData->m_count > 0, _T("invalid ref data count") );
|
wxASSERT_MSG( m_refData->m_count > 0, _T("invalid ref data count") );
|
||||||
|
|
||||||
if ( !--m_refData->m_count )
|
if ( !--m_refData->m_count )
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
|
// Until we figure this out
|
||||||
delete m_refData;
|
delete m_refData;
|
||||||
|
#endif
|
||||||
m_refData = (wxObjectRefData *) NULL;
|
m_refData = (wxObjectRefData *) NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -309,7 +309,9 @@ void wxApp::CleanUp()
|
|||||||
//
|
//
|
||||||
// This will flush the old messages if any
|
// This will flush the old messages if any
|
||||||
//
|
//
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
delete wxLog::SetActiveTarget(new wxLogStderr);
|
delete wxLog::SetActiveTarget(new wxLogStderr);
|
||||||
|
#endif
|
||||||
#endif // wxUSE_LOG
|
#endif // wxUSE_LOG
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -368,7 +370,9 @@ void wxApp::CleanUp()
|
|||||||
|
|
||||||
delete wxPendingEvents;
|
delete wxPendingEvents;
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
delete wxPendingEventsLocker;
|
delete wxPendingEventsLocker;
|
||||||
|
#endif
|
||||||
// If we don't do the following, we get an apparent memory leak.
|
// If we don't do the following, we get an apparent memory leak.
|
||||||
((wxEvtHandler&) wxDefaultValidator).ClearEventLocker();
|
((wxEvtHandler&) wxDefaultValidator).ClearEventLocker();
|
||||||
#endif
|
#endif
|
||||||
@@ -398,7 +402,9 @@ void wxApp::CleanUp()
|
|||||||
|
|
||||||
#if wxUSE_LOG
|
#if wxUSE_LOG
|
||||||
// do it as the very last thing because everything else can log messages
|
// do it as the very last thing because everything else can log messages
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
delete wxLog::SetActiveTarget(NULL);
|
delete wxLog::SetActiveTarget(NULL);
|
||||||
|
#endif
|
||||||
#endif // wxUSE_LOG
|
#endif // wxUSE_LOG
|
||||||
} // end of wxApp::CleanUp
|
} // end of wxApp::CleanUp
|
||||||
|
|
||||||
|
@@ -862,8 +862,8 @@ bool wxFrame::OS2Create(
|
|||||||
,0L
|
,0L
|
||||||
,0L
|
,0L
|
||||||
,0L
|
,0L
|
||||||
,NULLHANDLE
|
,m_hFrame
|
||||||
,HWND_TOP
|
,HWND_BOTTOM
|
||||||
,(unsigned long)FID_CLIENT
|
,(unsigned long)FID_CLIENT
|
||||||
,NULL
|
,NULL
|
||||||
,NULL
|
,NULL
|
||||||
|
@@ -335,7 +335,9 @@ void wxGDIImage::CleanUpHandlers()
|
|||||||
wxNode* pNext = pNode->Next();
|
wxNode* pNext = pNode->Next();
|
||||||
|
|
||||||
delete pHandler;
|
delete pHandler;
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
delete pNode;
|
delete pNode;
|
||||||
|
#endif
|
||||||
pNode = pNext;
|
pNode = pNext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -73,7 +73,7 @@ static wxString TextToLabel(const wxString& rTitle)
|
|||||||
pc++;
|
pc++;
|
||||||
Title << wxT('&');
|
Title << wxT('&');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Title << wxT('~');
|
Title << wxT('~');
|
||||||
}
|
}
|
||||||
// else if (*pc == wxT('/'))
|
// else if (*pc == wxT('/'))
|
||||||
@@ -169,7 +169,9 @@ wxMenu::~wxMenu()
|
|||||||
//
|
//
|
||||||
// Delete accels
|
// Delete accels
|
||||||
//
|
//
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
WX_CLEAR_ARRAY(m_vAccels);
|
WX_CLEAR_ARRAY(m_vAccels);
|
||||||
|
#endif
|
||||||
#endif // wxUSE_ACCEL
|
#endif // wxUSE_ACCEL
|
||||||
} // end of wxMenu::~wxMenu
|
} // end of wxMenu::~wxMenu
|
||||||
|
|
||||||
@@ -710,10 +712,12 @@ WXHMENU wxMenuBar::Create()
|
|||||||
ERRORID vError;
|
ERRORID vError;
|
||||||
wxString sError;
|
wxString sError;
|
||||||
MENUITEM vItem;
|
MENUITEM vItem;
|
||||||
|
HWND hSubMenu;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set the parent and owner of the submenues to be the menubar, not the desktop
|
// Set the parent and owner of the submenues to be the menubar, not the desktop
|
||||||
//
|
//
|
||||||
|
hSubMenu = m_menus[i]->m_vMenuData.hwndSubMenu;
|
||||||
if (!::WinSetParent(m_menus[i]->m_vMenuData.hwndSubMenu, hMenuBar, FALSE))
|
if (!::WinSetParent(m_menus[i]->m_vMenuData.hwndSubMenu, hMenuBar, FALSE))
|
||||||
{
|
{
|
||||||
vError = ::WinGetLastError(vHabmain);
|
vError = ::WinGetLastError(vHabmain);
|
||||||
|
@@ -746,11 +746,15 @@ void wxThreadModule::OnExit()
|
|||||||
if (gs_pCritsectGui)
|
if (gs_pCritsectGui)
|
||||||
{
|
{
|
||||||
gs_pCritsectGui->Leave();
|
gs_pCritsectGui->Leave();
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
delete gs_pCritsectGui;
|
delete gs_pCritsectGui;
|
||||||
|
#endif
|
||||||
gs_pCritsectGui = NULL;
|
gs_pCritsectGui = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
|
||||||
wxDELETE(gs_pCritsectWaitingForGui);
|
wxDELETE(gs_pCritsectWaitingForGui);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -1954,7 +1954,6 @@ MRESULT wxWindow::OS2WindowProc(
|
|||||||
bProcessed = HandleMouseEvent(uMsg, x, y, (WXUINT)wParam);
|
bProcessed = HandleMouseEvent(uMsg, x, y, (WXUINT)wParam);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_SYSCOMMAND:
|
case WM_SYSCOMMAND:
|
||||||
bProcessed = HandleSysCommand(wParam, lParam);
|
bProcessed = HandleSysCommand(wParam, lParam);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user