refactor: fix more sonarcloud warnings (#1508)

* refactor: const correctness

* refactor: use getpwuid_r instead of getpwuid

* chore: simplify dict walking loop logic

* refactor: remove dead store assignment in announcer

* refactor: use std::make_shared
This commit is contained in:
Charles Kerr
2020-11-05 16:46:21 -06:00
committed by GitHub
parent e74b3bad8b
commit 7f147c65fb
62 changed files with 355 additions and 414 deletions

View File

@@ -28,7 +28,6 @@ public:
NUM_MODES
};
public:
explicit FilterMode(int mode = SHOW_ALL) :
mode_(mode)
{
@@ -76,7 +75,6 @@ public:
NUM_MODES
};
public:
explicit SortMode(int mode = SORT_BY_ID) :
mode_(mode)
{