mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
ThemeEditor: Remove one usage of DeprecatedString
Up until 3d53dc8228
, to_string(ColorRole)
returned char*, which prevented us from directly creating a String
class.
This commit is contained in:
parent
5d2e915623
commit
7e4db556eb
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ ErrorOr<void> MainWidget::add_property_tab(PropertyTab const& property_tab)
|
|||
TRY(row_widget->load_from_gml(flag_property_gml));
|
||||
|
||||
auto& checkbox = *row_widget->find_descendant_of_type_named<GUI::CheckBox>("checkbox");
|
||||
checkbox.set_text(String::from_deprecated_string(DeprecatedString(to_string(role))).release_value_but_fixme_should_propagate_errors());
|
||||
checkbox.set_text(TRY(String::from_utf8(to_string(role))));
|
||||
checkbox.on_checked = [&, role](bool checked) {
|
||||
set_flag(role, checked);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue