summaryrefslogtreecommitdiff
path: root/googlemock/include/gmock/gmock-actions.h
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@google.com>2023-04-21 10:40:36 -0700
committerCopybara-Service <copybara-worker@google.com>2023-04-21 10:41:25 -0700
commit783d00fd19865fcbc3065e3fb3e17144761fcf5a (patch)
treebb27246918f3fcdea0cb619a37ac43ccb1abeac0 /googlemock/include/gmock/gmock-actions.h
parentbaf182e006bcb82ef5e0b407e350a1d4c444b76a (diff)
downloadgoogletest-git-783d00fd19865fcbc3065e3fb3e17144761fcf5a.tar.gz
Use '=default' to define trivial constructor/destructors
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html PiperOrigin-RevId: 526079054 Change-Id: Ia4db21e3e5f58b90de05d52fd94b291ed06d785d
Diffstat (limited to 'googlemock/include/gmock/gmock-actions.h')
-rw-r--r--googlemock/include/gmock/gmock-actions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h
index c0bb8a9c..bd9ba73e 100644
--- a/googlemock/include/gmock/gmock-actions.h
+++ b/googlemock/include/gmock/gmock-actions.h
@@ -611,7 +611,7 @@ class DefaultValue {
private:
class ValueProducer {
public:
- virtual ~ValueProducer() {}
+ virtual ~ValueProducer() = default;
virtual T Produce() = 0;
};
@@ -699,8 +699,8 @@ class ActionInterface {
typedef typename internal::Function<F>::Result Result;
typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
- ActionInterface() {}
- virtual ~ActionInterface() {}
+ ActionInterface() = default;
+ virtual ~ActionInterface() = default;
// Performs the action. This method is not const, as in general an
// action can have side effects and be stateful. For example, a
@@ -749,7 +749,7 @@ class Action<R(Args...)> {
// Constructs a null Action. Needed for storing Action objects in
// STL containers.
- Action() {}
+ Action() = default;
// Construct an Action from a specified callable.
// This cannot take std::function directly, because then Action would not be