1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-09 22:40:06 +00:00

functions taking std::function should not be noexcept

This commit is contained in:
Chuck Walbourn 2020-05-30 22:14:59 -07:00
parent 21f7e28b80
commit 8359882401
6 changed files with 6 additions and 6 deletions

View File

@ -947,7 +947,7 @@ HRESULT DirectX::SaveWICTextureToFile(
const wchar_t* fileName,
const GUID* targetFormat,
std::function<void(IPropertyBag2*)> setCustomProps,
bool forceSRGB) noexcept
bool forceSRGB)
{
if (!fileName)
return E_INVALIDARG;

View File

@ -37,5 +37,5 @@ namespace DirectX
_In_z_ const wchar_t* fileName,
_In_opt_ const GUID* targetFormat = nullptr,
_In_opt_ std::function<void __cdecl(IPropertyBag2*)> setCustomProps = nullptr,
_In_ bool forceSRGB = false) noexcept;
_In_ bool forceSRGB = false);
}

View File

@ -1058,7 +1058,7 @@ HRESULT DirectX::SaveWICTextureToFile(
D3D12_RESOURCE_STATES afterState,
const GUID* targetFormat,
std::function<void(IPropertyBag2*)> setCustomProps,
bool forceSRGB) noexcept
bool forceSRGB)
{
if (!fileName)
return E_INVALIDARG;

View File

@ -41,5 +41,5 @@ namespace DirectX
D3D12_RESOURCE_STATES afterState = D3D12_RESOURCE_STATE_RENDER_TARGET,
_In_opt_ const GUID* targetFormat = nullptr,
_In_opt_ std::function<void __cdecl(IPropertyBag2*)> setCustomProps = nullptr,
bool forceSRGB = false) noexcept;
bool forceSRGB = false);
}

View File

@ -737,7 +737,7 @@ HRESULT DirectX::SaveWICTextureToFile(
REFGUID guidContainerFormat,
const wchar_t* fileName,
const GUID* targetFormat,
std::function<void(IPropertyBag2*)> setCustomProps) noexcept
std::function<void(IPropertyBag2*)> setCustomProps)
{
if (!pSource || !fileName)
return E_INVALIDARG;

View File

@ -38,5 +38,5 @@ namespace DirectX
_In_ REFGUID guidContainerFormat,
_In_z_ const wchar_t* fileName,
_In_opt_ const GUID* targetFormat = nullptr,
_In_opt_ std::function<void __cdecl(IPropertyBag2*)> setCustomProps = nullptr) noexcept;
_In_opt_ std::function<void __cdecl(IPropertyBag2*)> setCustomProps = nullptr);
}