Remove virtual call from constructor in FToggleButton::FToggleButton
This commit is contained in:
parent
be7e8072fe
commit
368f74c497
|
@ -64,8 +64,7 @@ FToggleButton::FToggleButton (const FString& txt, FWidget* parent)
|
|||
, focus_inside_group(true)
|
||||
, text()
|
||||
{
|
||||
init();
|
||||
setText(txt);
|
||||
init(txt);
|
||||
|
||||
if ( parent && parent->isInstanceOf("FButtonGroup") )
|
||||
{
|
||||
|
@ -612,6 +611,13 @@ void FToggleButton::setGroup (FButtonGroup* btngroup)
|
|||
button_group = btngroup;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
void FToggleButton::init (const FString& txt)
|
||||
{
|
||||
setText(txt);
|
||||
init();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
void FToggleButton::init()
|
||||
{
|
||||
|
|
|
@ -153,6 +153,7 @@ class FToggleButton : public FWidget
|
|||
void setGroup (FButtonGroup*);
|
||||
|
||||
// Methods
|
||||
void init (const FString&);
|
||||
void init();
|
||||
int getHotkeyPos (wchar_t[], wchar_t[], uInt);
|
||||
void drawText (wchar_t[], int, uInt);
|
||||
|
|
Loading…
Reference in New Issue