summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 19:55:04 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 19:55:04 (GMT)
commit765822add7896f256078006191b2629bcf778849 (patch)
treee2e7842a2f04104832313ebe4bd18c501be66dc9 /Source/cmake.h
parent0d0995b7f8bc3ca6b88e8794ab03b0c7a1c2a8ca (diff)
downloadCMake-765822add7896f256078006191b2629bcf778849.zip
CMake-765822add7896f256078006191b2629bcf778849.tar.gz
CMake-765822add7896f256078006191b2629bcf778849.tar.bz2
cmake: pass cmStateSnapshot by const ref
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 4c292f0..6a6beb4 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -409,7 +409,7 @@ public:
void WatchUnusedCli(const std::string& var);
cmState* GetState() const { return this->State; }
- void SetCurrentSnapshot(cmStateSnapshot snapshot)
+ void SetCurrentSnapshot(cmStateSnapshot const& snapshot)
{
this->CurrentSnapshot = snapshot;
}