Skip to content

Commit d17392b

Browse files
authored
Port Resolve C26496 compiler errors when building in release mode with VS 15.9 (#4141)
1 parent bfba741 commit d17392b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/IISIntegration/src/AspNetCoreModuleV2/AspNetCore/applicationinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ APPLICATION_INFO::CreateApplication(IHttpContext& pHttpContext)
106106
}
107107
return S_OK;
108108
}
109-
catch (ConfigurationLoadException &ex)
109+
catch (const ConfigurationLoadException &ex)
110110
{
111111
EventLog::Error(
112112
ASPNETCORE_CONFIGURATION_LOAD_ERROR,

src/IISIntegration/src/AspNetCoreModuleV2/CommonLib/BaseOutputManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class BaseOutputManager :
5555
{
5656
func();
5757
}
58-
catch (std::runtime_error& exception)
58+
catch (const std::runtime_error& exception)
5959
{
6060
EventLog::Warn(ASPNETCORE_EVENT_GENERAL_WARNING, exceptionMessage.c_str(), GetModuleName().c_str(), to_wide_string(exception.what(), GetConsoleOutputCP()).c_str());
6161
}

0 commit comments

Comments
 (0)