X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae8351fc61c11718b80630465967408d13fc226a..29f7914424a7941e9374a5445f95574f2f041659:/utils/dialoged/src/edtree.cpp diff --git a/utils/dialoged/src/edtree.cpp b/utils/dialoged/src/edtree.cpp index a445963b7d..00086583d8 100644 --- a/utils/dialoged/src/edtree.cpp +++ b/utils/dialoged/src/edtree.cpp @@ -48,7 +48,7 @@ wxResourceEditorProjectTree::wxResourceEditorProjectTree(wxWindow* parent, wxWin { } -void wxResourceEditorProjectTree::LeftDClick(wxMouseEvent& event) +void wxResourceEditorProjectTree::LeftDClick(wxMouseEvent& WXUNUSED(event)) { #if 0 long sel = GetSelection(); @@ -58,7 +58,7 @@ void wxResourceEditorProjectTree::LeftDClick(wxMouseEvent& event) if (GetItemData(sel) == 0) return; - wxItemResource* res = (wxItemResource*) GetItemData(sel); + wxItemResource* res = (wxResourceTreeData *)GetItemData(sel)->GetResource(); wxString resType(res->GetType()); if (resType != "wxDialog" && resType != "wxDialogBox" && resType != "wxPanel") return; @@ -70,7 +70,7 @@ void wxResourceEditorProjectTree::LeftDClick(wxMouseEvent& event) #endif } -void wxResourceEditorProjectTree::OnSelChanged(wxTreeEvent& event) +void wxResourceEditorProjectTree::OnSelChanged(wxTreeEvent& WXUNUSED(event)) { long sel = GetSelection(); if (sel == -1) @@ -82,7 +82,7 @@ void wxResourceEditorProjectTree::OnSelChanged(wxTreeEvent& event) if (m_invalid) return; - wxItemResource* res = (wxItemResource*) GetItemData(sel); + wxItemResource* res = ((wxResourceTreeData *)GetItemData(sel))->GetResource(); wxString resType(res->GetType()); if (resType != "wxDialog" && resType != "wxDialogBox" && resType != "wxPanel") return;