Fix some static analysis warnings, including c-style cast

This commit is contained in:
Megamouse 2025-06-01 20:45:05 +02:00
parent 70faef3fdb
commit d986e8bcfa
9 changed files with 16 additions and 14 deletions

View file

@ -84,9 +84,8 @@ public:
transactional_storage& operator=(const transactional_storage&) = delete;
transactional_storage(transactional_storage&& other)
: pool(std::move(other.pool))
{
pool = std::move(other.pool);
std::unique_lock lock_other{other.current_mutex};
const std::shared_ptr<T> other_current = other.current;
other.current = nullptr;