Core/String: Fix Simplified() method, which was altering the original string size instead of the copy
Former-commit-id: ee47e8d0162647c87319345efc1506c41ec4b727 [formerly 02f40858f0e96881607d8e41a7f1ceac9f417a03] [formerly b711d61ffcf49f18afb95def91de1a045f3684dc [formerly b75b19a03b746c0a9f750d7ddf86ddd51f08098d]] Former-commit-id: 120d8b06bdbb658cf67e2a45bdaec4134ce291f2 [formerly ac34669afd7c16f9c2a2dee23dab7f7e09e0f5e5] Former-commit-id: 6b2fc9ec4f3815976a73ca2be3d79ce141597b58
This commit is contained in:
parent
6d356d2790
commit
bbf9a5337d
|
|
@ -3461,7 +3461,7 @@ namespace Nz
|
|||
p--;
|
||||
|
||||
*p = '\0';
|
||||
m_sharedString->size = p - str;
|
||||
newString->size = p - str;
|
||||
|
||||
return String(std::move(newString));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue