1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 17:15:08 +00:00

StringBuilder: Use a ByteBuffer internally instead of a Vector<String>.

This commit is contained in:
Andreas Kling 2019-01-18 03:27:51 +01:00
parent 074edffc44
commit 9d7da26b4e
6 changed files with 58 additions and 37 deletions

View file

@ -38,7 +38,7 @@ bool FileSystemPath::canonicalize(bool resolve_symbolic_links)
StringBuilder builder;
for (auto& cpart : canonical_parts) {
builder.append('/');
builder.append(move(cpart));
builder.append(cpart);
}
m_string = builder.build();
return true;