Browse Source

cmake: pass cmStateSnapshot by const ref

Daniel Pfeifer 8 years ago
parent
commit
765822add7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmake.h

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