Auto reformatted the base, ref #470

This commit is contained in:
emeric
2024-05-24 23:31:52 +02:00
parent 83b868673c
commit 39941d90a3
460 changed files with 8583 additions and 8514 deletions
+6 -5
View File
@@ -42,14 +42,14 @@
namespace lms::db::tests
{
template <typename T>
template<typename T>
class [[nodiscard]] ScopedEntity
{
public:
using IdType = typename T::IdType;
template <typename... Args>
ScopedEntity(db::Session& session, Args&& ...args)
template<typename... Args>
ScopedEntity(db::Session& session, Args&&... args)
: _session{ session }
{
auto transaction{ _session.createWriteTransaction() };
@@ -113,7 +113,8 @@ namespace lms::db::tests
class ScopedFileDeleter final
{
public:
ScopedFileDeleter(const std::filesystem::path& path) : _path{ path } {}
ScopedFileDeleter(const std::filesystem::path& path)
: _path{ path } {}
~ScopedFileDeleter() { std::filesystem::remove(_path); }
private:
@@ -155,4 +156,4 @@ namespace lms::db::tests
public:
db::Session session{ _tmpDb->getDb() };
};
}
} // namespace lms::db::tests