Use base class IsCurrent() in wxUniv wxVListBox

Just make the base class function accessible in this class scope, this
is better than redefining it and doesn't result in a -Wsuggest-override.
This commit is contained in:
Vadim Zeitlin
2026-07-31 12:45:42 +02:00
parent af93e02b18
commit 8b6f8097cf
+1 -1
View File
@@ -92,7 +92,7 @@ public:
// is this item the current one?
bool IsCurrent(size_t item) const { return item == (size_t)m_current; }
#ifdef __WXUNIVERSAL__
bool IsCurrent() const { return wxVScrolledCanvas::IsCurrent(); }
using wxVScrolledCanvas::IsCurrent;
#endif
// get current item