mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibGUI: Add u64 type to LibGUI::Variant
`uint` has also been more appropriately renamed to u32.
This commit is contained in:
parent
9adcfd5726
commit
786275feb8
Notes:
sideshowbarker
2024-07-18 17:16:14 +09:00
Author: https://github.com/Quaker762
Commit: 786275feb8
Pull-request: https://github.com/SerenityOS/serenity/pull/7480
Issue: https://github.com/SerenityOS/serenity/issues/7288
Reviewed-by: https://github.com/gunnarbeutner ✅
Reviewed-by: https://github.com/linusg
3 changed files with 63 additions and 31 deletions
|
@ -177,7 +177,7 @@ void AutocompleteBox::apply_suggestion()
|
|||
|
||||
VERIFY(suggestion.length() >= partial_length);
|
||||
auto completion_view = suggestion.substring_view(partial_length, suggestion.length() - partial_length);
|
||||
auto completion_kind = (GUI::AutocompleteProvider::CompletionKind)suggestion_index.data((GUI::ModelRole)AutocompleteSuggestionModel::InternalRole::Kind).as_uint();
|
||||
auto completion_kind = (GUI::AutocompleteProvider::CompletionKind)suggestion_index.data((GUI::ModelRole)AutocompleteSuggestionModel::InternalRole::Kind).as_u32();
|
||||
|
||||
String completion;
|
||||
if (completion_view.ends_with(".h") && completion_kind == GUI::AutocompleteProvider::CompletionKind::SystemInclude)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue