From fc38e5554744c473eff8110e88a74bde58c2cec6 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 28 May 2020 10:34:20 +0300 Subject: [PATCH] No auto "auto r" implies that it's a resource, but it's not. --- src/wayland/datacontroldevice_v1_interface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wayland/datacontroldevice_v1_interface.cpp b/src/wayland/datacontroldevice_v1_interface.cpp index 46104978ab..3439c19f83 100644 --- a/src/wayland/datacontroldevice_v1_interface.cpp +++ b/src/wayland/datacontroldevice_v1_interface.cpp @@ -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()