Specify that BlobWithKey takes ownership of the contained blob
This commit is contained in:
parent
6d0815915c
commit
2c295ace62
@ -10,7 +10,7 @@
|
|||||||
namespace blobstore {
|
namespace blobstore {
|
||||||
|
|
||||||
struct BlobWithKey {
|
struct BlobWithKey {
|
||||||
BlobWithKey(const std::string &key_, std::unique_ptr<Blob> &&blob_): key(key_), blob(std::move(blob_)) {}
|
BlobWithKey(const std::string &key_, std::unique_ptr<Blob> blob_): key(key_), blob(std::move(blob_)) {}
|
||||||
|
|
||||||
std::string key;
|
std::string key;
|
||||||
std::unique_ptr<Blob> blob;
|
std::unique_ptr<Blob> blob;
|
||||||
|
Loading…
Reference in New Issue
Block a user