refactor: clean-up some clang-tidy warnings

This commit is contained in:
CJ van den Berg 2024-08-27 19:25:19 +02:00
parent ee6b1276df
commit 858dcf09e0
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 21 additions and 21 deletions

View file

@ -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"));

View file

@ -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);