Browse Source

fix(Log): treat pt::Log::Manipulators as enum and not as int

master
Tomasz Sowa 4 months ago
parent
commit
7a115a3970
  1. 11
      winixd/core/log.cpp
  2. 3
      winixd/core/log.h

11
winixd/core/log.cpp

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2019, Tomasz Sowa
* Copyright (c) 2008-2022, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -252,7 +252,14 @@ Log & Log::operator<<(LogManipulators m)
break;
}
return *this;
return *this;
}
Log & Log::operator<<(pt::Log::Manipulators m)
{
pt::Log::operator<<(m);
return *this;
}

3
winixd/core/log.h

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2019, Tomasz Sowa
* Copyright (c) 2008-2022, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -79,6 +79,7 @@ public:
virtual Log & operator<<(double s);
virtual Log & operator<<(const pt::Space & space);
virtual Log & operator<<(LogManipulators m);
virtual Log & operator<<(pt::Log::Manipulators m);
virtual Log & operator<<(const pt::Date & date);
virtual Log & operator<<(morm::Model & model);

Loading…
Cancel
Save