From 19dfb6ea1f6745c0dbc2ce21839c30184b553878 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 8 Apr 2021 11:07:12 +0200 Subject: 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 --- source/blender/io/common/IO_abstract_hierarchy_iterator.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/blender/io/common/IO_abstract_hierarchy_iterator.h') diff --git a/source/blender/io/common/IO_abstract_hierarchy_iterator.h b/source/blender/io/common/IO_abstract_hierarchy_iterator.h index 300c555ac8f..0bebc4384a9 100644 --- a/source/blender/io/common/IO_abstract_hierarchy_iterator.h +++ b/source/blender/io/common/IO_abstract_hierarchy_iterator.h @@ -123,7 +123,7 @@ struct HierarchyContext { */ class AbstractHierarchyWriter { public: - virtual ~AbstractHierarchyWriter(); + virtual ~AbstractHierarchyWriter() = default; virtual void write(HierarchyContext &context) = 0; /* TODO(Sybren): add function like absent() that's called when a writer was previously created, * but wasn't used while exporting the current frame (for example, a particle-instanced mesh of @@ -186,9 +186,6 @@ class ObjectIdentifier { ObjectIdentifier(Object *object, Object *duplicated_by, const PersistentID &persistent_id); public: - ObjectIdentifier(const ObjectIdentifier &other); - ~ObjectIdentifier(); - static ObjectIdentifier for_graph_root(); static ObjectIdentifier for_real_object(Object *object); static ObjectIdentifier for_hierarchy_context(const HierarchyContext *context); -- cgit v1.2.3