1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-23 07:16:48 +02:00

store: fix move ctor

indexer_ is holding a ptr to the _old_ store; clear it so it gets
regenerated.
This commit is contained in:
Dirk-Jan C. Binnema 2022-10-26 21:51:53 +03:00
parent f0bba8e1fa
commit 27a85eada2

View File

@ -338,7 +338,11 @@ Store::Store(const std::string& path,
{ {
} }
Store::Store(Store&&) = default; Store::Store(Store&& other)
{
priv_ = std::move(other.priv_);
priv_->indexer_.reset();
}
Store::~Store() = default; Store::~Store() = default;