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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user