diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-06-02 21:01:01 +0200 |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-06-04 00:48:21 +0200 |
commit | b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd (patch) | |
tree | 3954dea8257e82f7be83a53519c43a7e9418526c /Source/cmStateSnapshot.h | |
parent | 3216c2178cfcc75d48f383a76ccff4aa052b5fdc (diff) | |
download | cmake-b1ec5deaf15be459658b8fb0392e4d4a4ec1a0dd.tar.gz |
Pass large types by const&, small types by value
Diffstat (limited to 'Source/cmStateSnapshot.h')
-rw-r--r-- | Source/cmStateSnapshot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStateSnapshot.h b/Source/cmStateSnapshot.h index 2e82ef4bfd..6293803b98 100644 --- a/Source/cmStateSnapshot.h +++ b/Source/cmStateSnapshot.h @@ -45,7 +45,7 @@ public: void SetPolicy(cmPolicies::PolicyID id, cmPolicies::PolicyStatus status); cmPolicies::PolicyStatus GetPolicy(cmPolicies::PolicyID id) const; bool HasDefinedPolicyCMP0011(); - void PushPolicy(cmPolicies::PolicyMap entry, bool weak); + void PushPolicy(cmPolicies::PolicyMap const& entry, bool weak); bool PopPolicy(); bool CanPopPolicyScope(); |