mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
Everywhere: Prefer using "..."sv over StringView { "..." }
This commit is contained in:
parent
ea8ff03475
commit
3bbe86d8ea
11 changed files with 35 additions and 35 deletions
|
@ -149,7 +149,7 @@ void GMLAutocompleteProvider::provide_completions(Function<void(Vector<Entry>)>
|
|||
identifier_entries.empend(it.key, identifier_string.length());
|
||||
}
|
||||
}
|
||||
if (can_have_declared_layout(class_names.last()) && StringView { "layout" }.starts_with(identifier_string))
|
||||
if (can_have_declared_layout(class_names.last()) && "layout"sv.starts_with(identifier_string))
|
||||
identifier_entries.empend("layout", identifier_string.length());
|
||||
// No need to suggest anything if it's already completely typed out!
|
||||
if (identifier_entries.size() == 1 && identifier_entries.first().completion == identifier_string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue