permissive- code cleanup

This commit is contained in:
Chuck Walbourn
2017-01-10 14:51:52 -08:00
parent b47a7d13d9
commit 8fcd276eba
6 changed files with 27 additions and 27 deletions

View File

@@ -367,7 +367,7 @@ namespace DirectX
}
}
LDRColorA LDRColorA::operator = (_In_ const HDRColorA& c)
LDRColorA operator = (_In_ const HDRColorA& c)
{
LDRColorA ret;
HDRColorA tmp(c);

View File

@@ -574,7 +574,7 @@ namespace
bool sRGB = IsSRGB(format);
value.vt = VT_LPSTR;
value.pszVal = "DirectXTex";
value.pszVal = const_cast<char*>("DirectXTex");
if (memcmp(&containerFormat, &GUID_ContainerFormatPng, sizeof(GUID)) == 0)
{
@@ -781,7 +781,7 @@ namespace
{
// Opt-in to the WIC2 support for writing 32-bit Windows BMP files with an alpha channel
PROPBAG2 option = { 0 };
option.pstrName = L"EnableV5Header32bppBGRA";
option.pstrName = const_cast<wchar_t*>(L"EnableV5Header32bppBGRA");
VARIANT varValue;
varValue.vt = VT_BOOL;