summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-10-22 20:55:41 +0000
committerGeir Storli <geirst@verizonmedia.com>2020-10-22 20:55:41 +0000
commita9831d25b17d27f4c441e86b9d1607a4116bf38f (patch)
tree61a5ee731e546329a9db9c5f0c70856fa0120a49 /storage
parent3adef49574ec1d09a26235f6da34ce21c1d3f396 (diff)
Use default destructor outside class definition.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/tests/persistence/filestorage/filestormanagertest.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
index f4ede33ab06..9142a03ab85 100644
--- a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
+++ b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
@@ -243,9 +243,11 @@ struct FileStorHandlerComponents {
filestorHandler = std::make_unique<FileStorHandlerImpl>(messageSender, metrics, test._node->getComponentRegister());
filestorHandler->setGetNextMessageTimeout(50ms);
}
- ~FileStorHandlerComponents() {}
+ ~FileStorHandlerComponents();
};
+FileStorHandlerComponents::~FileStorHandlerComponents() = default;
+
struct PersistenceHandlerComponents : public FileStorHandlerComponents {
ServiceLayerComponent component;
BucketOwnershipNotifier bucketOwnershipNotifier;
@@ -264,12 +266,14 @@ struct PersistenceHandlerComponents : public FileStorHandlerComponents {
*filestorHandler, bucketOwnershipNotifier,
*metrics.disk->threads[0]);
}
+ ~PersistenceHandlerComponents();
std::unique_ptr<DiskThread> make_disk_thread() {
return createThread(*persistenceHandler, *filestorHandler, component);
}
- ~PersistenceHandlerComponents() {}
};
+PersistenceHandlerComponents::~PersistenceHandlerComponents() = default;
+
}
void