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.cxx | |
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.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 929b1cd..0c73cd7 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -307,7 +307,8 @@ struct cmListFileBacktrace::Entry : public cmListFileContext unsigned int RefCount; }; -cmListFileBacktrace::cmListFileBacktrace(cmStateSnapshot bottom, Entry* up, +cmListFileBacktrace::cmListFileBacktrace(cmStateSnapshot const& bottom, + Entry* up, cmListFileContext const& lfc) : Bottom(bottom) , Cur(new Entry(lfc, up)) @@ -316,7 +317,8 @@ cmListFileBacktrace::cmListFileBacktrace(cmStateSnapshot bottom, Entry* up, this->Cur->Ref(); } -cmListFileBacktrace::cmListFileBacktrace(cmStateSnapshot bottom, Entry* cur) +cmListFileBacktrace::cmListFileBacktrace(cmStateSnapshot const& bottom, + Entry* cur) : Bottom(bottom) , Cur(cur) { @@ -332,7 +334,7 @@ cmListFileBacktrace::cmListFileBacktrace() { } -cmListFileBacktrace::cmListFileBacktrace(cmStateSnapshot snapshot) +cmListFileBacktrace::cmListFileBacktrace(cmStateSnapshot const& snapshot) : Bottom(snapshot.GetCallStackBottom()) , Cur(CM_NULLPTR) { |