1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

AK: Make Deprecated{Fly,}String and StringImpl const-correct

This commit is contained in:
Andreas Kling 2023-02-19 22:59:26 +01:00
parent 4b3e229157
commit a56dfd5c77
5 changed files with 27 additions and 28 deletions

View file

@ -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;
}