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();
|
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()
|
||||||
|
|
Loading…
Reference in a new issue