refactor: clean-up some clang-tidy warnings
This commit is contained in:
parent
ee6b1276df
commit
858dcf09e0
6 changed files with 21 additions and 21 deletions
|
@ -86,7 +86,7 @@ struct controller {
|
|||
auto endpoint_unx(context &ctx, bool &result, env_t env_) -> ::result {
|
||||
stringstream ss;
|
||||
ss << "/net/vdbonline/thespian/endpoint_t_" << getpid();
|
||||
string path = ss.str();
|
||||
const string path = ss.str();
|
||||
return to_result(ctx.spawn_link(
|
||||
[path]() {
|
||||
link(env().proc("log"));
|
||||
|
|
|
@ -50,7 +50,7 @@ struct logger {
|
|||
|
||||
auto receive(const buffer &m) {
|
||||
if (verbose) {
|
||||
std::lock_guard<mutex> lock(trace_m);
|
||||
const std::lock_guard<mutex> lock(trace_m);
|
||||
cout << name << ": ";
|
||||
auto dump = [&](auto val) { cout << val << " "; };
|
||||
for (const auto val : m)
|
||||
|
@ -115,7 +115,7 @@ extern "C" auto runtestcase(const char *name) -> int {
|
|||
env_t env{};
|
||||
env_t log_env{};
|
||||
auto trace = [&](const buffer &buf) {
|
||||
lock_guard<mutex> lock(trace_m);
|
||||
const lock_guard<mutex> lock(trace_m);
|
||||
cout << buf.to_json() << '\n';
|
||||
};
|
||||
log_env.on_trace(trace);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue