From 931b571e3d2484c508b8e6f907438ca2ee8a105d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 Sep 2018 08:10:36 +0200 Subject: [PATCH] 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. --- src/neighbor/plugins/UdisksNeighborPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neighbor/plugins/UdisksNeighborPlugin.cxx b/src/neighbor/plugins/UdisksNeighborPlugin.cxx index a161346ec..1137fe03c 100644 --- a/src/neighbor/plugins/UdisksNeighborPlugin.cxx +++ b/src/neighbor/plugins/UdisksNeighborPlugin.cxx @@ -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;