diff --git a/Utilities/rFile.cpp b/Utilities/rFile.cpp index 1dbce8b4af..2dd000b319 100644 --- a/Utilities/rFile.cpp +++ b/Utilities/rFile.cpp @@ -10,13 +10,13 @@ #define GET_API_ERROR static_cast(GetLastError()) -std::unique_ptr ConvertUTF8ToWChar(const std::string& source) +std::unique_ptr ConvertUTF8ToWChar(const std::string& source) { const size_t length = source.size() + 1; // size + null terminator const int size = source.size() < INT_MAX ? static_cast(length) : throw std::length_error(__FUNCTION__); - std::unique_ptr buffer(new wchar_t[length]); // allocate buffer assuming that length is the max possible size + std::unique_ptr buffer(new wchar_t[length]); // allocate buffer assuming that length is the max possible size if (!MultiByteToWideChar(CP_UTF8, 0, source.c_str(), size, buffer.get(), size)) { diff --git a/rpcs3/Emu/SysCalls/Modules/cellVdec.cpp b/rpcs3/Emu/SysCalls/Modules/cellVdec.cpp index 3ce4ae1e11..df761051c2 100644 --- a/rpcs3/Emu/SysCalls/Modules/cellVdec.cpp +++ b/rpcs3/Emu/SysCalls/Modules/cellVdec.cpp @@ -711,7 +711,7 @@ s32 cellVdecGetPicture(u32 handle, vm::ptr format, vm:: auto out_f = AV_PIX_FMT_YUV420P; - std::unique_ptr alpha_plane; + std::unique_ptr alpha_plane; switch (const u32 type = format->formatType) { diff --git a/rpcs3/Loader/PSF.cpp b/rpcs3/Loader/PSF.cpp index cf2aed6ea7..b67cbad97f 100644 --- a/rpcs3/Loader/PSF.cpp +++ b/rpcs3/Loader/PSF.cpp @@ -46,7 +46,7 @@ bool PSFLoader::Load(vfsStream& stream) const u32 key_table_size = header.off_data_table - header.off_key_table; - std::unique_ptr keys(new char[key_table_size + 1]); + std::unique_ptr keys(new char[key_table_size + 1]); stream.Seek(header.off_key_table); @@ -91,7 +91,7 @@ bool PSFLoader::Load(vfsStream& stream) const u32 size = indices[i].param_len; - std::unique_ptr str(new char[size + 1]); + std::unique_ptr str(new char[size + 1]); if (stream.Read(str.get(), size) != size) {