mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
clang-tidy: avoid copy
This commit is contained in:
parent
b432e933cb
commit
73020305af
@ -236,7 +236,7 @@ public:
|
||||
cmFileMonitor::Callback cb)
|
||||
: Parent(p)
|
||||
, PathSegment(ps)
|
||||
, CbList({ cb })
|
||||
, CbList({ std::move(cb) })
|
||||
{
|
||||
assert(p);
|
||||
assert(!ps.empty());
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
struct cmListFileParser
|
||||
{
|
||||
cmListFileParser(cmListFile* lf, cmListFileBacktrace lfbt,
|
||||
cmListFileParser(cmListFile* lf, cmListFileBacktrace const& lfbt,
|
||||
cmMessenger* messenger, const char* filename);
|
||||
~cmListFileParser();
|
||||
void IssueFileOpenError(std::string const& text) const;
|
||||
@ -39,7 +39,8 @@ struct cmListFileParser
|
||||
} Separation;
|
||||
};
|
||||
|
||||
cmListFileParser::cmListFileParser(cmListFile* lf, cmListFileBacktrace lfbt,
|
||||
cmListFileParser::cmListFileParser(cmListFile* lf,
|
||||
cmListFileBacktrace const& lfbt,
|
||||
cmMessenger* messenger,
|
||||
const char* filename)
|
||||
: ListFile(lf)
|
||||
|
Loading…
Reference in New Issue
Block a user