cmake: pass cmStateSnapshot by const ref

This commit is contained in:
Daniel Pfeifer committed 2017-04-21 21:55:04 +02:00
1 parent 0d0995b7f8
commit 765822add7
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}