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:
parent
7c6bf7f75d
commit
23996a550a
|
|
@ -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