diff --git a/alib2graph_algo/src/minimum_cut/FordFulkerson.cpp b/alib2graph_algo/src/minimum_cut/FordFulkerson.cpp index 8d750e6cf6ae857aa4be34417bcf5bb0b7516ace..ff177a02d02497df54751bc05bbdb3bf5d02fd29 100644 --- a/alib2graph_algo/src/minimum_cut/FordFulkerson.cpp +++ b/alib2graph_algo/src/minimum_cut/FordFulkerson.cpp @@ -80,7 +80,7 @@ static Cut fordfulkerson_impl_dir(const DirectedGraph &graph, } // cut are those edges, which lead from nodes reachable from source to nodes unreachable from source - for (std::pair<node::Node, node::Node> edge : candidates) { + for (const std::pair<node::Node, node::Node> & edge : candidates) { if ((state[edge.first] == 1 && state[edge.second] == 0) || (state[edge.first] == 0 && state[edge.second] == 1)) cut.insert(edge); @@ -120,7 +120,7 @@ static Cut fordfulkerson_impl_undir(const UndirectedGraph &ugraph, } // cut are those edges, which lead from nodes reachable from source to nodes unreachable from source - for (std::pair<node::Node, node::Node> edge : candidates) { + for (const std::pair<node::Node, node::Node> & edge : candidates) { if ((state[edge.first] == 1 && state[edge.second] == 0) || (state[edge.first] == 0 && state[edge.second] == 1)) cut.insert(edge); diff --git a/alib2graph_data/src/common/Normalize.hpp b/alib2graph_data/src/common/Normalize.hpp index 5fb96b810d596a3802f8dcbd2875cf34ba71512f..54da17b3ee45ef3ee34415df8a38a4288c384abe 100644 --- a/alib2graph_data/src/common/Normalize.hpp +++ b/alib2graph_data/src/common/Normalize.hpp @@ -86,7 +86,7 @@ ext::pair<DefaultCoordinateType, DefaultCoordinateType> Normalize::normalizeObst TCoordinate> &&obstacle) { DefaultCoordinateType first = DefaultCoordinateType(obstacle.first); DefaultCoordinateType second = DefaultCoordinateType(obstacle.second); - return ext::make_pair(std::move(first), std::move(second)); + return ext::make_pair(first, second); } // =====================================================================================================================