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:
parent
35eca08d48
commit
931b571e3d
@ -236,7 +236,7 @@ UdisksNeighborExplorer::HandleMessage(DBusConnection *, DBusMessage *message) no
|
||||
UDisks2::Object o(path);
|
||||
UDisks2::ParseObject(o, std::move(i));
|
||||
if (o.IsValid())
|
||||
Insert(std::move(o));
|
||||
this->Insert(std::move(o));
|
||||
});
|
||||
|
||||
return DBUS_HANDLER_RESULT_HANDLED;
|
||||
|
Loading…
Reference in New Issue
Block a user