neighbor/smbclient: make iterators non-const to enable the std::move()
This commit is contained in:
parent
d072b3cb17
commit
7646866a32
|
@ -179,9 +179,9 @@ DetectServers() noexcept
|
||||||
}
|
}
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
static NeighborExplorer::List::const_iterator
|
static NeighborExplorer::List::iterator
|
||||||
FindBeforeServerByURI(NeighborExplorer::List::const_iterator prev,
|
FindBeforeServerByURI(NeighborExplorer::List::iterator prev,
|
||||||
NeighborExplorer::List::const_iterator end,
|
NeighborExplorer::List::iterator end,
|
||||||
const std::string &uri) noexcept
|
const std::string &uri) noexcept
|
||||||
{
|
{
|
||||||
for (auto i = std::next(prev); i != end; prev = i, i = std::next(prev))
|
for (auto i = std::next(prev); i != end; prev = i, i = std::next(prev))
|
||||||
|
|
Loading…
Reference in New Issue