Code review for const auto vs auto const (#579)

This commit is contained in:
Chuck Walbourn
2025-02-04 12:12:59 -08:00
committed by GitHub
parent 87e8b9513f
commit cfd5f27126
23 changed files with 95 additions and 95 deletions

View File

@@ -374,7 +374,7 @@ HRESULT DirectX::LoadFromEXRFile(const wchar_t* szFile, TexMetadata* metadata, S
Imf::RgbaInputFile file(fileName.c_str());
#endif
auto const dw = file.dataWindow();
const auto dw = file.dataWindow();
const int width = dw.max.x - dw.min.x + 1;
int height = dw.max.y - dw.min.y + 1;

View File

@@ -64,7 +64,7 @@ namespace
}
// DDS files always start with the same magic number ("DDS ")
auto const dwMagicNumber = *reinterpret_cast<const uint32_t*>(pSource);
const auto dwMagicNumber = *reinterpret_cast<const uint32_t*>(pSource);
if (dwMagicNumber != DDS_MAGIC)
{
return E_FAIL;