summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobVerificationManager.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-01-21 16:15:21 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-22 18:03:04 (GMT)
commit5a0784ddea62ee653a3a1199d4ff2140868d2c1d (patch)
tree0cbdb3658d8d5a270be900ddb829a4afe5cb4b32 /Source/cmGlobVerificationManager.h
parentbcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b (diff)
downloadCMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.zip
CMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.tar.gz
CMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.tar.bz2
clang-tidy: Pass by value
Diffstat (limited to 'Source/cmGlobVerificationManager.h')
-rw-r--r--Source/cmGlobVerificationManager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGlobVerificationManager.h b/Source/cmGlobVerificationManager.h
index cdbd275..c293a76 100644
--- a/Source/cmGlobVerificationManager.h
+++ b/Source/cmGlobVerificationManager.h
@@ -55,13 +55,13 @@ private:
const bool FollowSymlinks;
const std::string Relative;
const std::string Expression;
- CacheEntryKey(const bool rec, const bool l, const bool s,
- const std::string& rel, const std::string& e)
+ CacheEntryKey(const bool rec, const bool l, const bool s, std::string rel,
+ std::string e)
: Recurse(rec)
, ListDirectories(l)
, FollowSymlinks(s)
- , Relative(rel)
- , Expression(e)
+ , Relative(std::move(rel))
+ , Expression(std::move(e))
{
}
bool operator<(const CacheEntryKey& r) const;