diff options
author | Jacques Lucke <jacques@blender.org> | 2021-04-08 12:07:12 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-04-08 12:07:27 +0300 |
commit | 19dfb6ea1f6745c0dbc2ce21839c30184b553878 (patch) | |
tree | 4deac8e505cf2f422ab20d132395d006dddb29c3 /source/blender/blenloader/tests | |
parent | 0ea66039dd5374e23e9e60e8e3192f919d4f1abd (diff) |
Cleanup: enable modernize-use-equals-default check
This removes a lot of unnecessary code that is generated by
the compiler automatically.
In very few cases, a defaulted destructor in a .cc file is
still necessary, because of forward declarations in the header.
I removed some defaulted virtual destructors, because they are not
necessary, when the parent class has a virtual destructor already.
Defaulted constructors are only necessary when there is another
constructor, but the class should still be default constructible.
Differential Revision: https://developer.blender.org/D10911
Diffstat (limited to 'source/blender/blenloader/tests')
-rw-r--r-- | source/blender/blenloader/tests/blendfile_loading_base_test.cc | 4 | ||||
-rw-r--r-- | source/blender/blenloader/tests/blendfile_loading_base_test.h | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/blenloader/tests/blendfile_loading_base_test.cc b/source/blender/blenloader/tests/blendfile_loading_base_test.cc index 8d8dc3aebf7..280a4b42b36 100644 --- a/source/blender/blenloader/tests/blendfile_loading_base_test.cc +++ b/source/blender/blenloader/tests/blendfile_loading_base_test.cc @@ -50,10 +50,6 @@ #include "CLG_log.h" -BlendfileLoadingBaseTest::~BlendfileLoadingBaseTest() -{ -} - void BlendfileLoadingBaseTest::SetUpTestCase() { testing::Test::SetUpTestCase(); diff --git a/source/blender/blenloader/tests/blendfile_loading_base_test.h b/source/blender/blenloader/tests/blendfile_loading_base_test.h index 32bb2959dcc..d352aecfe41 100644 --- a/source/blender/blenloader/tests/blendfile_loading_base_test.h +++ b/source/blender/blenloader/tests/blendfile_loading_base_test.h @@ -30,8 +30,6 @@ class BlendfileLoadingBaseTest : public testing::Test { struct Depsgraph *depsgraph = nullptr; public: - virtual ~BlendfileLoadingBaseTest(); - /* Sets up Blender just enough to not crash on loading * a blendfile and constructing a depsgraph. */ static void SetUpTestCase(); |