Make wxItemId::m_pItem private (PR #25926)

16 views
Skip to first unread message

vvs31415

unread,
Oct 25, 2025, 11:28:30 AM (4 days ago) Oct 25
to wx-...@googlegroups.com, Subscribed

Call public wxItemId::GetID() instead


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/25926

Commit Summary

  • 3266f65 Make wxItemId::m_pItem private

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25926@github.com>

VZ

unread,
Oct 25, 2025, 11:31:23 AM (4 days ago) Oct 25
to wx-...@googlegroups.com, Subscribed

@vadz commented on this pull request.


In include/wx/itemid.h:

> @@ -40,9 +40,7 @@ class wxItemId
 
     void Unset() { m_pItem = nullptr; }
 
-    // This field is public *only* for compatibility with the old wxTreeItemId

We can apply the rest of this PR, but I don't want to change this, I'm almost certain that there is existing code using m_pItem and it's not worth breaking it without any real gain.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25926/review/3380097027@github.com>

vvs31415

unread,
Oct 25, 2025, 1:45:05 PM (4 days ago) Oct 25
to wx-...@googlegroups.com, Push

@vvs31415 pushed 1 commit.

  • b1b9958 Do not use wxItemId::m_pItem directly


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25926/before/3266f65f86c96695883208c4024cf1d5fa864995/after/b1b99587bda09c7f2ea55a76cb41ccef039d26c3@github.com>

VZ

unread,
Oct 26, 2025, 1:34:06 PM (3 days ago) Oct 26
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25926)

Thanks, I'll merge and push this soon.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25926/c3448719086@github.com>

VZ

unread,
Oct 28, 2025, 7:29:24 PM (20 hours ago) Oct 28
to wx-...@googlegroups.com, Subscribed

Closed #25926 via cf8fb30.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25926/issue_event/20566729891@github.com>

Reply all
Reply to author
Forward
0 new messages