Port Resolve C26496 compiler errors when building in release mode with VS 15.9 (#4141)
This commit is contained in:
parent
bfba741326
commit
d17392bc45
|
|
@ -106,7 +106,7 @@ APPLICATION_INFO::CreateApplication(IHttpContext& pHttpContext)
|
||||||
}
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
catch (ConfigurationLoadException &ex)
|
catch (const ConfigurationLoadException &ex)
|
||||||
{
|
{
|
||||||
EventLog::Error(
|
EventLog::Error(
|
||||||
ASPNETCORE_CONFIGURATION_LOAD_ERROR,
|
ASPNETCORE_CONFIGURATION_LOAD_ERROR,
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ protected:
|
||||||
{
|
{
|
||||||
func();
|
func();
|
||||||
}
|
}
|
||||||
catch (std::runtime_error& exception)
|
catch (const std::runtime_error& exception)
|
||||||
{
|
{
|
||||||
EventLog::Warn(ASPNETCORE_EVENT_GENERAL_WARNING, exceptionMessage.c_str(), GetModuleName().c_str(), to_wide_string(exception.what(), GetConsoleOutputCP()).c_str());
|
EventLog::Warn(ASPNETCORE_EVENT_GENERAL_WARNING, exceptionMessage.c_str(), GetModuleName().c_str(), to_wide_string(exception.what(), GetConsoleOutputCP()).c_str());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue