diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-24 09:42:07 +0100 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2019-11-24 09:42:28 +0100 |
commit | f04a3e981d3175d7f3d0f5008b842823034f47ed (patch) | |
tree | 07211ed7bd99b2f5daea7276ab469134d4b1b976 /llvm/utils/unittest/googlemock/include | |
parent | d1dded28da2808200dacdc1eda46058cc0a0759b (diff) | |
download | bcm5719-llvm-f04a3e981d3175d7f3d0f5008b842823034f47ed.tar.gz bcm5719-llvm-f04a3e981d3175d7f3d0f5008b842823034f47ed.zip |
Fixed -Wdeprecated-copy warnings in gtest. NFCI.
Diffstat (limited to 'llvm/utils/unittest/googlemock/include')
-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 |