No auto
"auto r" implies that it's a resource, but it's not.
This commit is contained in:
parent
1c3059c74b
commit
fc38e55547
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue