How to set the widget class to none in c++

But the one above sets the widget component of the character and I don’t have a widget component on the character.