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

This commit is contained in:
Andreas Kling 2023-02-19 22:59:26 +01:00
commit a56dfd5c77
Notes: sideshowbarker 2024-07-17 18:13:59 +09:00
5 changed files with 27 additions and 28 deletions

View file

@ -29,7 +29,7 @@ public:
{
}
static DeprecatedFlyString from_fly_impl(NonnullRefPtr<StringImpl> impl)
static DeprecatedFlyString from_fly_impl(NonnullRefPtr<StringImpl const> impl)
{
VERIFY(impl->is_fly());
DeprecatedFlyString string;
@ -91,7 +91,7 @@ public:
}
private:
RefPtr<StringImpl> m_impl;
RefPtr<StringImpl const> m_impl;
};
template<>