mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 12:16:14 +01:00
Code review for const auto vs auto const (#579)
This commit is contained in:
@@ -506,8 +506,8 @@ namespace
|
||||
if (rowBytes > UINT32_MAX || numBytes > UINT32_MAX)
|
||||
return HRESULT_FROM_WIN32(ERROR_ARITHMETIC_OVERFLOW);
|
||||
|
||||
auto const rowPitch = static_cast<size_t>(rowBytes);
|
||||
auto const imageSize = static_cast<size_t>(numBytes);
|
||||
const auto rowPitch = static_cast<size_t>(rowBytes);
|
||||
const auto imageSize = static_cast<size_t>(numBytes);
|
||||
|
||||
decodedData.reset(new (std::nothrow) uint8_t[imageSize]);
|
||||
if (!decodedData)
|
||||
|
||||
Reference in New Issue
Block a user