cmake: pass cmStateSnapshot by const ref

This commit is contained in:
Daniel Pfeifer 2017-04-21 21:55:04 +02:00
parent 0d0995b7f8
commit 765822add7

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;
}