mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
cmake: pass cmStateSnapshot by const ref
This commit is contained in:
1 parent
0d0995b7f8
commit
765822add7
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user