Fix clang-tidy modernize-pass-by-value findings

This commit is contained in:
Tim Wojtulewicz 2025-05-15 09:25:39 -07:00
parent 46e67a749a
commit 5930d2f944
22 changed files with 37 additions and 40 deletions

View file

@ -21,8 +21,8 @@ namespace {
class Tracer {
public:
Tracer(const std::string& where) : where(where) {} // DBG_LOG(zeek::DBG_STORAGE, "%s", where.c_str()); }
~Tracer() {} // DBG_LOG(zeek::DBG_STORAGE, "%s done", where.c_str()); }
Tracer(std::string where) : where(std::move(where)) {} // DBG_LOG(zeek::DBG_STORAGE, "%s", where.c_str()); }
~Tracer() {} // DBG_LOG(zeek::DBG_STORAGE, "%s done", where.c_str()); }
std::string where;
};