Remove casting from previous commit and fix the following Klockwork issues:

1. Removing "return" from void functions.
2. Using "const" for operator= argument.
This commit is contained in:
Chen Hayat
2016-11-01 17:16:07 +02:00
parent 83d192b1f1
commit 0c16b9ae1e
3 changed files with 7 additions and 4 deletions

View File

@@ -15,7 +15,10 @@ namespace sinks
class sink
{
public:
sink() { _level = (int)level::trace; }
sink()
{
_level = level::trace;
}
virtual ~sink() {}
virtual void log(const details::log_msg& msg) = 0;