Made default color policy autodetection again.

This commit is contained in:
Patrick Lühne 2016-06-14 18:46:47 +02:00
parent 52fee6a4c1
commit 0a205680fe

View File

@ -40,13 +40,13 @@ class LogStream
public: public:
LogStream(StandardStream standardStream) LogStream(StandardStream standardStream)
: m_standardStream{standardStream}, : m_standardStream{standardStream},
m_colorPolicy{ColorPolicy::Never} m_colorPolicy{ColorPolicy::Auto}
{ {
} }
LogStream(const LogStream &other) LogStream(const LogStream &other)
: m_standardStream{other.m_standardStream}, : m_standardStream{other.m_standardStream},
m_colorPolicy{ColorPolicy::Never} m_colorPolicy{ColorPolicy::Auto}
{ {
} }
@ -62,7 +62,7 @@ class LogStream
: m_standardStream{other.m_standardStream}, : m_standardStream{other.m_standardStream},
m_colorPolicy{other.m_colorPolicy} m_colorPolicy{other.m_colorPolicy}
{ {
other.m_colorPolicy = ColorPolicy::Never; other.m_colorPolicy = ColorPolicy::Auto;
} }
LogStream &operator=(LogStream &&other) LogStream &operator=(LogStream &&other)
@ -70,7 +70,7 @@ class LogStream
m_standardStream = other.m_standardStream; m_standardStream = other.m_standardStream;
m_colorPolicy = other.m_colorPolicy; m_colorPolicy = other.m_colorPolicy;
other.m_colorPolicy = ColorPolicy::Never; other.m_colorPolicy = ColorPolicy::Auto;
return *this; return *this;
} }