diff options
Diffstat (limited to 'llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h')
-rw-r--r-- | llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<F>* 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<Func> object into an // Action<F>, as long as F's arguments can be implicitly converted |