From 7646866a322e5e48614a4a414faadcd298191a70 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 20 Feb 2020 16:43:00 +0100 Subject: [PATCH] neighbor/smbclient: make iterators non-const to enable the std::move() --- src/neighbor/plugins/SmbclientNeighborPlugin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx index 805799d91..2a481770a 100644 --- a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx +++ b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx @@ -179,9 +179,9 @@ DetectServers() noexcept } gcc_pure -static NeighborExplorer::List::const_iterator -FindBeforeServerByURI(NeighborExplorer::List::const_iterator prev, - NeighborExplorer::List::const_iterator end, +static NeighborExplorer::List::iterator +FindBeforeServerByURI(NeighborExplorer::List::iterator prev, + NeighborExplorer::List::iterator end, const std::string &uri) noexcept { for (auto i = std::next(prev); i != end; prev = i, i = std::next(prev))