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