Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPCC-32814 Use const for unmodifiable variables #19347

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions testing/unittests/dalitests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3055,7 +3055,7 @@ class DaliSysInfoLoggerTester : public CppUnit::TestFixture
const char * msg;
};

std::vector<TestCase> testCases =
const std::vector<TestCase> testCases =
{
{
LogMsgCategory(MSGAUD_operator, MSGCLS_information, DefaultDetail),
Expand Down Expand Up @@ -3151,7 +3151,7 @@ class DaliSysInfoLoggerTester : public CppUnit::TestFixture

// Make sure written messages matches message read back
matchedMessages.insert(matched->testCaseIndex);
TestCase & testCase = testCases[matched->testCaseIndex];
const TestCase & testCase = testCases[matched->testCaseIndex];
ASSERT(testCase.hidden==sysInfoMsg.queryIsHidden());
ASSERT(testCase.code==sysInfoMsg.queryLogMsgCode());
ASSERT(strcmp(testCase.msg,sysInfoMsg.queryMsg())==0);
Expand Down Expand Up @@ -3187,7 +3187,7 @@ class DaliSysInfoLoggerTester : public CppUnit::TestFixture
{
writtenMessages.clear();
unsigned testCaseIndex=0;
for (auto testCase: testCases)
for (const auto & testCase: testCases)
{
try
{
Expand Down
Loading