(Open Watcom but not only) compilation warning fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-04 11:18:02 +00:00
parent 799b5ec965
commit 0a3d26b81f
6 changed files with 15 additions and 14 deletions

View File

@@ -104,7 +104,7 @@ private:
// structure describing a registry key/value
class TreeNode : public wxTreeItemData
{
WX_DEFINE_ARRAY(TreeNode *, TreeChildren);
WX_DEFINE_ARRAY_NO_PTR(TreeNode *, TreeChildren);
public:
RegTreeCtrl *m_pTree; // must be !NULL
TreeNode *m_pParent; // NULL only for the root node
@@ -1071,7 +1071,7 @@ void RegTreeCtrl::GoTo(const wxString& location)
void RegTreeCtrl::DeleteSelected()
{
long lCurrent = GetSelection(),
lParent = GetParent(lCurrent);
lParent = GetItemParent(lCurrent);
if ( lParent == 0 ) {
wxLogError(wxT("Can't delete root key."));