"auto r" implies that it's a resource, but it's not.
This commit is contained in:
Vlad Zahorodnii 2020-05-28 10:34:20 +03:00
parent 1c3059c74b
commit fc38e55547

View file

@ -117,11 +117,11 @@ void DataControlDeviceV1Interface::sendSelection(AbstractDataSource *other)
sendClearSelection(); sendClearSelection();
return; return;
} }
auto r = d->createDataOffer(other); DataControlOfferV1Interface *offer = d->createDataOffer(other);
if (!r) { if (!offer) {
return; return;
} }
d->send_selection(r->resource()); d->send_selection(offer->resource());
} }
void DataControlDeviceV1Interface::sendClearSelection() void DataControlDeviceV1Interface::sendClearSelection()