Browse Source

Fix: Remove incorrect final statements

Kim Kulling 1 năm trước cách đây
mục cha
commit
c1deb808fa

+ 3 - 0
test/unit/utBlendImportAreaLight.cpp

@@ -48,6 +48,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
 class BlendImportAreaLight : public ::testing::Test {
 class BlendImportAreaLight : public ::testing::Test {
 public:
 public:
+    BlendImportAreaLight() :
+            im(nullptr) {}
+    ~BlendImportAreaLight() override = default;
     void SetUp() override {
     void SetUp() override {
         im = new Assimp::Importer();
         im = new Assimp::Importer();
     }
     }

+ 5 - 2
test/unit/utBlenderWork.cpp

@@ -48,11 +48,14 @@ using namespace ::Assimp;
 
 
 class BlenderWorkTest : public ::testing::Test {
 class BlenderWorkTest : public ::testing::Test {
 public:
 public:
-    virtual void SetUp() {
+    BlenderWorkTest() : im(nullptr) {}
+    ~BlenderWorkTest() override = default;
+
+    void SetUp() override {
         im = new Assimp::Importer();
         im = new Assimp::Importer();
     }
     }
 
 
-    virtual void TearDown() {
+    void TearDown() override {
         delete im;
         delete im;
     }
     }