modernize-use-override

This commit is contained in:
Daniel Chabrowski
2018-02-24 23:56:56 +01:00
parent 7f4c1bb77c
commit fb6df0512f
15 changed files with 38 additions and 42 deletions

View File

@@ -22,13 +22,12 @@ namespace spdlog
namespace sinks
{
template<class Mutex>
class dist_sink: public base_sink<Mutex>
class dist_sink : public base_sink<Mutex>
{
public:
explicit dist_sink() :_sinks() {}
dist_sink(const dist_sink&) = delete;
dist_sink& operator=(const dist_sink&) = delete;
virtual ~dist_sink() = default;
protected:
std::vector<std::shared_ptr<sink>> _sinks;
@@ -51,8 +50,6 @@ protected:
}
public:
void add_sink(std::shared_ptr<sink> sink)
{
std::lock_guard<Mutex> lock(base_sink<Mutex>::_mutex);