diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-06-02 19:01:01 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-06-03 22:48:21 (GMT) |
commit | b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd (patch) | |
tree | 3954dea8257e82f7be83a53519c43a7e9418526c /Source/cmListFileCache.h | |
parent | 3216c2178cfcc75d48f383a76ccff4aa052b5fdc (diff) | |
download | CMake-b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd.zip CMake-b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd.tar.gz CMake-b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd.tar.bz2 |
Pass large types by const&, small types by value
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 |