Skip to content
Snippets Groups Projects
Commit 5e3ddb9b authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

Merge branch 'dev/scott/msgstr' into 'master'

Fix uninitialized MsgStream member

See merge request !341
parents a0ab6887 df09a658
No related branches found
No related tags found
1 merge request!341Fix uninitialized MsgStream member
Pipeline #
......@@ -44,6 +44,7 @@ MsgStream::MsgStream(IMessageSvc* svc, int)
: m_service(svc)
{
setLevel( svc ? svc->outputLevel() : MSG::INFO );
m_currLevel = m_level;
m_useColors = ( svc ? svc->useColor() : false );
#ifndef NDEBUG
m_inactCounter = svc ? Gaudi::Cast<IInactiveMessageCounter>(svc) : 0;
......@@ -55,6 +56,7 @@ MsgStream::MsgStream(IMessageSvc* svc, std::string source, int)
m_source(std::move(source))
{
setLevel( svc ? svc->outputLevel(m_source) : MSG::INFO );
m_currLevel = m_level;
m_useColors = ( svc && svc->useColor() );
#ifndef NDEBUG
m_inactCounter = svc ? Gaudi::Cast<IInactiveMessageCounter>(svc) : 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment