mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
clang-tidy: avoid copy
This commit is contained in:
@@ -236,7 +236,7 @@ public:
|
||||
cmFileMonitor::Callback cb)
|
||||
: Parent(p)
|
||||
, PathSegment(ps)
|
||||
, CbList({ cb })
|
||||
, CbList({ std::move(cb) })
|
||||
{
|
||||
assert(p);
|
||||
assert(!ps.empty());
|
||||
|
||||
Reference in New Issue
Block a user