1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

AK: Avoid impl initialization before assignment in Stringconstructor

This commit is contained in:
Michel Hermier 2022-01-20 13:30:23 +01:00 committed by Andreas Kling
parent 3b877c889b
commit e986ce961a

View file

@ -44,8 +44,8 @@ public:
String() = default; String() = default;
String(StringView view) String(StringView view)
: m_impl(StringImpl::create(view.characters_without_null_termination(), view.length()))
{ {
m_impl = StringImpl::create(view.characters_without_null_termination(), view.length());
} }
String(const String& other) String(const String& other)