From 765822add7896f256078006191b2629bcf778849 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Fri, 21 Apr 2017 21:55:04 +0200 Subject: cmake: pass cmStateSnapshot by const ref --- Source/cmake.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12