mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
AK: Avoid impl initialization before assignment in String
constructor
This commit is contained in:
parent
3b877c889b
commit
e986ce961a
1 changed files with 1 additions and 1 deletions
|
@ -44,8 +44,8 @@ public:
|
|||
String() = default;
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue