diff --git a/include/wx/compositewin.h b/include/wx/compositewin.h index eeb758a110..ebf631c47c 100644 --- a/include/wx/compositewin.h +++ b/include/wx/compositewin.h @@ -178,20 +178,8 @@ private: event.Skip(); } - template - void SetForAllParts(bool (wxWindowBase::*func)(const T&), const T& arg) - { - DoSetForAllParts(func, arg); - } - - template - void SetForAllParts(bool (wxWindowBase::*func)(T*), T* arg) - { - DoSetForAllParts(func, arg); - } - - template - void DoSetForAllParts(bool (wxWindowBase::*func)(T), T arg) + template + void SetForAllParts(R (wxWindowBase::*func)(TArg), T arg) { // Simply call the setters for all parts of this composite window. const wxWindowList parts = GetCompositeWindowParts();