Fix PartialLocalFileLocationPtr.
GitOrigin-RevId: c72b2da96bfc01d3c40693863830205145229aa3
This commit is contained in:
parent
0377bfc660
commit
97a4f73999
@ -923,12 +923,14 @@ struct PartialLocalFileLocationPtr {
|
|||||||
}
|
}
|
||||||
PartialLocalFileLocationPtr &operator=(const PartialLocalFileLocationPtr &other) {
|
PartialLocalFileLocationPtr &operator=(const PartialLocalFileLocationPtr &other) {
|
||||||
*location_ = *other.location_;
|
*location_ = *other.location_;
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
PartialLocalFileLocationPtr(PartialLocalFileLocationPtr &&other)
|
PartialLocalFileLocationPtr(PartialLocalFileLocationPtr &&other)
|
||||||
: location_(make_unique<PartialLocalFileLocation>(std::move(*other.location_))) {
|
: location_(make_unique<PartialLocalFileLocation>(std::move(*other.location_))) {
|
||||||
}
|
}
|
||||||
PartialLocalFileLocationPtr &operator=(PartialLocalFileLocationPtr &&other) {
|
PartialLocalFileLocationPtr &operator=(PartialLocalFileLocationPtr &&other) {
|
||||||
*location_ = std::move(*other.location_);
|
*location_ = std::move(*other.location_);
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
~PartialLocalFileLocationPtr() = default;
|
~PartialLocalFileLocationPtr() = default;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user