Fixed minor code smells (#901)

This commit is contained in:
Philipp Hasper 2021-04-09 20:55:21 +02:00 committed by GitHub
parent faa5f1d802
commit 28e07bca16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -20,8 +20,6 @@ using namespace std;
class EventDispatcher {
public:
EventDispatcher() {
id_ = 0;
cid_ = -1;
}
void wait_event(DataSink *sink) {
@ -41,8 +39,8 @@ public:
private:
mutex m_;
condition_variable cv_;
atomic_int id_;
atomic_int cid_;
atomic_int id_ = 0;
atomic_int cid_ = -1;
string message_;
};