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

Updating CI machines to VS 15.9 causes the project to fail to compile with C26496 errors. This adds `const` keywords to resolve the compiler errors.
This commit is contained in:
Nate McMaster 2018-11-19 23:34:01 -08:00 committed by GitHub
parent 7c6bf7f75d
commit 23996a550a
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());
}