Specify that BlobWithKey takes ownership of the contained blob

This commit is contained in:
Sebastian Messmer 2014-12-07 08:57:04 +01:00
parent 6d0815915c
commit 2c295ace62

View File

@ -10,7 +10,7 @@
namespace blobstore {
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::unique_ptr<Blob> blob;