X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/600683ca0561c9d56e73f1faa3f21d8a6670936b..88a036cef3585f9a6d23d074aadb2ebda0b73ff8:/samples/regtest/regtest.cpp diff --git a/samples/regtest/regtest.cpp b/samples/regtest/regtest.cpp index 9e4c080e48..d9fdca92ef 100644 --- a/samples/regtest/regtest.cpp +++ b/samples/regtest/regtest.cpp @@ -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."));