neighbor/udisks: add this-> to work around GCC 6 bug
Since `this` was captured, it does not need to be specified, but GCC 6
can't do it. Since we want to support the standard compiler from
Debian Stretch (stable), we need to work around this problem:
src/neighbor/plugins/UdisksNeighborPlugin.cxx:239:12: error: cannot call member function 'void UdisksNeighborExplorer::Insert(UDisks2::Object&&)' without object
Insert(std::move(o));
~~~~~~^~~~~~~~~~~~~~
This fixes #300 which I previously thought was a different bug.
This commit is contained in:
@@ -236,7 +236,7 @@ UdisksNeighborExplorer::HandleMessage(DBusConnection *, DBusMessage *message) no
|
|||||||
UDisks2::Object o(path);
|
UDisks2::Object o(path);
|
||||||
UDisks2::ParseObject(o, std::move(i));
|
UDisks2::ParseObject(o, std::move(i));
|
||||||
if (o.IsValid())
|
if (o.IsValid())
|
||||||
Insert(std::move(o));
|
this->Insert(std::move(o));
|
||||||
});
|
});
|
||||||
|
|
||||||
return DBUS_HANDLER_RESULT_HANDLED;
|
return DBUS_HANDLER_RESULT_HANDLED;
|
||||||
|
|||||||
Reference in New Issue
Block a user