diff --git a/include/wx/tbarbase.h b/include/wx/tbarbase.h index 582fb2da81..3aa70ce99d 100644 --- a/include/wx/tbarbase.h +++ b/include/wx/tbarbase.h @@ -76,7 +76,7 @@ public: m_tbar = tbar; m_id = toolid; if (m_id == wxID_ANY) - m_id = wxWindow::NewControlId(); + m_id = wxNewId(); m_clientData = clientData; m_bmpNormal = bmpNormal; diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 7d5185c1b5..49f3a00d9e 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -375,7 +375,7 @@ wxMenuItemBase::wxMenuItemBase(wxMenu *parentMenu, m_id = id; m_kind = kind; if (m_id == wxID_ANY) - m_id = wxWindow::NewControlId(); + m_id = wxNewId(); if (m_id == wxID_SEPARATOR) m_kind = wxITEM_SEPARATOR;