Fix compile error and warning

Fixes #16886
This commit is contained in:
Henrik Rydgård 2023-02-01 11:13:38 +01:00
parent 12f219f695
commit 5ca0bfe716

View File

@ -114,7 +114,7 @@ private:
void OnCompleted(DialogResult result) override;
UI::SliderFloat *slider_ = nullptr;
UI::TextEdit *edit_ = nullptr;
std::string units_ = nullptr;
std::string units_;
float sliderValue_ = 0.0f;
float originalValue_ = 0.0f;
float *value_;
@ -361,7 +361,7 @@ private:
std::string placeHolder_;
std::string defaultText_;
int maxLen_;
bool restoreFocus_;
bool restoreFocus_ = false;
};
class ChoiceWithValueDisplay : public AbstractChoiceWithValueDisplay {