Skip to content

Commit 3f7660f

Browse files
committed
Remove redundant "const" from wxItemId conversion operator
This "const" is ignored and just results in a warning from MSVS 17.6. See wxWidgets#23590. (cherry picked from commit 946aa6b)
1 parent b6e9e37 commit 3f7660f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/changes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ Changes in behaviour which may result in build errors
235235
3.2.4: (released 2024-??-??)
236236
----------------------------
237237

238+
wxMSW:
239+
240+
- Fix MSVS warning about redundant "const" in wx/itemid.h (#23590).
241+
238242

239243
3.2.3: (released 2023-10-10)
240244
----------------------------

include/wx/itemid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class wxItemId
3333

3434
bool IsOk() const { return m_pItem != NULL; }
3535
Type GetID() const { return m_pItem; }
36-
operator const Type() const { return m_pItem; }
36+
operator Type() const { return m_pItem; }
3737

3838
// This is used for implementation purposes only.
3939
Type operator->() const { return m_pItem; }

0 commit comments

Comments
 (0)