mirror of https://github.com/opencardev/aasdk
Self can be moved
parent
de146367bb
commit
894da2e214
|
@ -108,7 +108,7 @@ void USBEndpoint::transfer(libusb_transfer *transfer, Promise::Pointer promise)
|
||||||
// guarantee that endpoint will live until all transfers are finished
|
// guarantee that endpoint will live until all transfers are finished
|
||||||
if(self_ == nullptr)
|
if(self_ == nullptr)
|
||||||
{
|
{
|
||||||
self_ = self;
|
self_ = std::move(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
transfers_.insert(std::make_pair(transfer, std::move(promise)));
|
transfers_.insert(std::make_pair(transfer, std::move(promise)));
|
||||||
|
|
Loading…
Reference in New Issue