[partition] Warnings-- in tests related to virtual destructors

This commit is contained in:
Adriaan de Groot 2020-10-24 02:21:32 +02:00
parent 01b75ef4b5
commit 89b1f8d96b
2 changed files with 6 additions and 0 deletions

View file

@ -156,3 +156,7 @@ TestDevice::TestDevice( const QString& name, const qint64 logicalSectorSize, con
{ {
} }
#endif #endif
TestDevice::~TestDevice()
{
}

View file

@ -18,6 +18,7 @@ class CreateLayoutsTests : public QObject
Q_OBJECT Q_OBJECT
public: public:
CreateLayoutsTests(); CreateLayoutsTests();
~CreateLayoutsTests() override = default;
private Q_SLOTS: private Q_SLOTS:
void testFixedSizePartition(); void testFixedSizePartition();
@ -31,6 +32,7 @@ class TestDevice : public Device
{ {
public: public:
TestDevice( const QString& name, const qint64 logicalSectorSize, const qint64 totalLogicalSectors ); TestDevice( const QString& name, const qint64 logicalSectorSize, const qint64 totalLogicalSectors );
~TestDevice() override;
}; };
#endif #endif