diff options
author | Tom Hughes <tomhughes@google.com> | 2023-04-21 10:40:36 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-04-21 10:41:25 -0700 |
commit | 783d00fd19865fcbc3065e3fb3e17144761fcf5a (patch) | |
tree | bb27246918f3fcdea0cb619a37ac43ccb1abeac0 /googletest/include/gtest/gtest.h | |
parent | baf182e006bcb82ef5e0b407e350a1d4c444b76a (diff) | |
download | googletest-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 'googletest/include/gtest/gtest.h')
-rw-r--r-- | googletest/include/gtest/gtest.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index e5438268..84125034 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -894,7 +894,7 @@ class GTEST_API_ TestSuite { class Environment { public: // The d'tor is virtual as we need to subclass Environment. - virtual ~Environment() {} + virtual ~Environment() = default; // Override this to define how to set up the environment. virtual void SetUp() {} @@ -925,7 +925,7 @@ class GTEST_API_ AssertionException // the order the corresponding events are fired. class TestEventListener { public: - virtual ~TestEventListener() {} + virtual ~TestEventListener() = default; // Fired before any test activity starts. virtual void OnTestProgramStart(const UnitTest& unit_test) = 0; @@ -1671,7 +1671,7 @@ template <typename T> class WithParamInterface { public: typedef T ParamType; - virtual ~WithParamInterface() {} + virtual ~WithParamInterface() = default; // The current parameter value. Is also available in the test fixture's // constructor. |