Commit 931b571e authored by Max Kellermann's avatar Max Kellermann

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.
parent 35eca08d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment