From f04a3e981d3175d7f3d0f5008b842823034f47ed Mon Sep 17 00:00:00 2001 From: Dávid Bolvanský Date: Sun, 24 Nov 2019 09:42:07 +0100 Subject: Fixed -Wdeprecated-copy warnings in gtest. NFCI. --- llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h') diff --git a/llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h b/llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h index 8e17468a2cf..32377991f64 100644 --- a/llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h +++ b/llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h @@ -368,7 +368,8 @@ class Action { explicit Action(ActionInterface* impl) : impl_(impl) {} // Copy constructor. - Action(const Action& action) : impl_(action.impl_) {} + Action(const Action &action) = default; + Action &operator=(const Action &action) = default; // This constructor allows us to turn an Action object into an // Action, as long as F's arguments can be implicitly converted -- cgit v1.2.3