mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 06:18:59 +00:00
Sprinkle use of AK::Vector in various places.
Some of these are less helpful than others. Avoiding a bunch of mallocs in the event loop wakeup code is definitely nice.
This commit is contained in:
parent
7faf8fabf2
commit
5eedb22834
Notes:
sideshowbarker
2024-07-19 14:38:44 +09:00
Author: https://github.com/awesomekling
Commit: 5eedb22834
17 changed files with 53 additions and 50 deletions
|
@ -76,7 +76,7 @@ struct GFileSystemModel::Node {
|
|||
|
||||
String full_path(const GFileSystemModel& model) const
|
||||
{
|
||||
Vector<String> lineage;
|
||||
Vector<String, 32> lineage;
|
||||
for (auto* ancestor = parent; ancestor; ancestor = ancestor->parent) {
|
||||
lineage.append(ancestor->name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue