X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FGraph.cpp;h=86694eea585da9f5006da496ede63615a24c9f7e;hb=125ed160d625368520074f2898c0487d30d46b98;hp=f78be287b28e15605ffdc3baa41367891f26d5f4;hpb=196d9caeb0b9f74d02750f774de1ca63a483803f;p=lyx.git diff --git a/src/Graph.cpp b/src/Graph.cpp index f78be287b2..86694eea58 100644 --- a/src/Graph.cpp +++ b/src/Graph.cpp @@ -45,11 +45,11 @@ bool Graph::bfs_init(int s, bool clear_visited, queue & Q) Graph::EdgePath const - Graph::getReachableTo(int target, bool clear_visited) + Graph::getReachableTo(int to, bool clear_visited) { EdgePath result; queue Q; - if (!bfs_init(target, clear_visited, Q)) + if (!bfs_init(to, clear_visited, Q)) return result; // Here's the logic, which is shared by the other routines. @@ -61,7 +61,7 @@ Graph::EdgePath const while (!Q.empty()) { int const current = Q.front(); Q.pop(); - if (current != target || theFormats().get(target).name() != "lyx") + if (current != to || theFormats().get(to).name() != "lyx") result.push_back(current); vector::iterator it = vertices_[current].in_arrows.begin();