diff options
author | Brad King <brad.king@kitware.com> | 2017-06-05 13:44:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-06-05 13:44:24 (GMT) |
commit | c6ea3f01c3e78145b8fd3dd534d8803d8f7e7bd7 (patch) | |
tree | f4cfbaf9a7901e46f8914351bd52ebe47a132d12 /Source/cmListFileCache.h | |
parent | 8a68a2ceb355621da21983c2571ead15d2b98dea (diff) | |
parent | b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd (diff) | |
download | CMake-c6ea3f01c3e78145b8fd3dd534d8803d8f7e7bd7.zip CMake-c6ea3f01c3e78145b8fd3dd534d8803d8f7e7bd7.tar.gz CMake-c6ea3f01c3e78145b8fd3dd534d8803d8f7e7bd7.tar.bz2 |
Merge topic 'lint-function-args'
b1ec5dea Pass large types by const&, small types by value
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !927
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r-- | Source/cmListFileCache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index aa11ba7..349ddef 100644 --- a/Source/cmListFileCache.h +++ b/Source/cmListFileCache.h @@ -107,7 +107,7 @@ public: // Construct an empty backtrace whose bottom sits in the directory // indicated by the given valid snapshot. - cmListFileBacktrace(cmStateSnapshot snapshot); + cmListFileBacktrace(cmStateSnapshot const& snapshot); // Backtraces may be copied and assigned as values. cmListFileBacktrace(cmListFileBacktrace const& r); @@ -143,9 +143,9 @@ private: cmStateSnapshot Bottom; Entry* Cur; - cmListFileBacktrace(cmStateSnapshot bottom, Entry* up, + cmListFileBacktrace(cmStateSnapshot const& bottom, Entry* up, cmListFileContext const& lfc); - cmListFileBacktrace(cmStateSnapshot bottom, Entry* cur); + cmListFileBacktrace(cmStateSnapshot const& bottom, Entry* cur); }; struct cmListFile |