1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Replace Memory::Copy with std::copy

This commit is contained in:
Ted John
2018-02-01 12:52:39 +00:00
parent bb8b6a3f68
commit 0c71855769
19 changed files with 72 additions and 85 deletions

View File

@@ -14,6 +14,7 @@
*****************************************************************************/
#pragma endregion
#include <algorithm>
#include <cwctype>
#include <stdexcept>
#include <vector>
@@ -376,7 +377,7 @@ namespace String
}
utf8 * result = Memory::Allocate<utf8>(size + 1);
Memory::Copy(result, buffer + index, size);
std::copy_n(buffer + index, size, result);
result[size] = '\0';
return result;
}