"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();
return;
}
auto r = d->createDataOffer(other);
if (!r) {
DataControlOfferV1Interface *offer = d->createDataOffer(other);
if (!offer) {
return;
}
d->send_selection(r->resource());
d->send_selection(offer->resource());
}
void DataControlDeviceV1Interface::sendClearSelection()