Port Resolve C26496 compiler errors when building in release mode with VS 15.9 (#4141)

This commit is contained in:
Pavel Krymets 2018-11-20 10:00:37 -08:00 committed by GitHub
parent bfba741326
commit d17392bc45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ APPLICATION_INFO::CreateApplication(IHttpContext& pHttpContext)
}
return S_OK;
}
catch (ConfigurationLoadException &ex)
catch (const ConfigurationLoadException &ex)
{
EventLog::Error(
ASPNETCORE_CONFIGURATION_LOAD_ERROR,

View File

@ -55,7 +55,7 @@ protected:
{
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());
}