Self can be moved

pull/1/head
michal.szwaj 2018-07-17 16:06:56 +02:00
parent de146367bb
commit 894da2e214
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ void USBEndpoint::transfer(libusb_transfer *transfer, Promise::Pointer promise)
// guarantee that endpoint will live until all transfers are finished
if(self_ == nullptr)
{
self_ = self;
self_ = std::move(self);
}
transfers_.insert(std::make_pair(transfer, std::move(promise)));