Browse Source

Fix crash after latest changes

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 1 year ago
parent
commit
054e75a0a1
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      source/modules/water/text/String.cpp

+ 1
- 3
source/modules/water/text/String.cpp View File

@@ -241,9 +241,7 @@ void String::clear() noexcept
String& String::operator= (const String& other) noexcept
{
StringHolder::retain (other.text);
std::swap(text.data, const_cast<CharPointer_UTF8&>(other.text).data);
StringHolder::release (other.text);
swapWith(const_cast<String&>(other));
return *this;
}


Loading…
Cancel
Save