mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
AK: Make Deprecated{Fly,}String and StringImpl const-correct
This commit is contained in:
parent
4b3e229157
commit
a56dfd5c77
Notes:
sideshowbarker
2024-07-17 18:13:59 +09:00
Author: https://github.com/awesomekling
Commit: a56dfd5c77
Pull-request: https://github.com/SerenityOS/serenity/pull/17557
Reviewed-by: https://github.com/linusg
5 changed files with 27 additions and 28 deletions
|
@ -24,9 +24,9 @@ struct DeprecatedFlyStringImplTraits : public Traits<StringImpl*> {
|
|||
}
|
||||
};
|
||||
|
||||
static Singleton<HashTable<StringImpl*, DeprecatedFlyStringImplTraits>> s_table;
|
||||
static Singleton<HashTable<StringImpl const*, DeprecatedFlyStringImplTraits>> s_table;
|
||||
|
||||
static HashTable<StringImpl*, DeprecatedFlyStringImplTraits>& fly_impls()
|
||||
static HashTable<StringImpl const*, DeprecatedFlyStringImplTraits>& fly_impls()
|
||||
{
|
||||
return *s_table;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue