mirror of https://github.com/djcb/mu.git
store: fix move ctor
indexer_ is holding a ptr to the _old_ store; clear it so it gets regenerated.
This commit is contained in:
parent
4924daef6c
commit
f333209287
|
@ -351,7 +351,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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue