Fix PartialLocalFileLocationPtr.

GitOrigin-RevId: c72b2da96bfc01d3c40693863830205145229aa3
This commit is contained in:
levlam 2019-01-02 21:52:44 +03:00
parent 0377bfc660
commit 97a4f73999

View File

@ -923,12 +923,14 @@ struct PartialLocalFileLocationPtr {
}
PartialLocalFileLocationPtr &operator=(const PartialLocalFileLocationPtr &other) {
*location_ = *other.location_;
return *this;
}
PartialLocalFileLocationPtr(PartialLocalFileLocationPtr &&other)
: location_(make_unique<PartialLocalFileLocation>(std::move(*other.location_))) {
}
PartialLocalFileLocationPtr &operator=(PartialLocalFileLocationPtr &&other) {
*location_ = std::move(*other.location_);
return *this;
}
~PartialLocalFileLocationPtr() = default;