Skip to content

Commit ff776a8

Browse files
committed
Using c++11 initializer list
1 parent 93bc531 commit ff776a8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/Utilities/src/Logging.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,8 @@ class Logging
359359
/**
360360
* Construct Logging.
361361
*/
362-
Logging() : m_currentLogLevel(LOG_LEVEL_INFO), m_sinks(), m_selectedSink(nullptr)
362+
Logging() : m_currentLogLevel(LOG_LEVEL_INFO), m_sinks{nullptr}, m_selectedSink(nullptr)
363363
{
364-
uint8_t index = 0U;
365-
366-
for (index = 0U; index < MAX_SINKS; ++index)
367-
{
368-
m_sinks[index] = nullptr;
369-
}
370364
}
371365

372366
/**

0 commit comments

Comments
 (0)