From 0aee72871bb75643ab1e599519ef2f1454fd84e9 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 19 Jan 2011 14:29:46 +0000 Subject: [PATCH] Use the typedef. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37261 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Graph.cpp | 8 ++++---- src/Graph.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Graph.cpp b/src/Graph.cpp index 09db31e5f2..d7ea066dc3 100644 --- a/src/Graph.cpp +++ b/src/Graph.cpp @@ -46,10 +46,10 @@ bool Graph::bfs_init(int s, bool clear_visited, queue & Q) } -vector const +Graph::EdgePath const Graph::getReachableTo(int target, bool clear_visited) { - vector result; + EdgePath result; queue Q; if (!bfs_init(target, clear_visited, Q)) return result; @@ -81,11 +81,11 @@ vector const } -vector const +Graph::EdgePath const Graph::getReachable(int from, bool only_viewable, bool clear_visited) { - vector result; + EdgePath result; queue Q; if (!bfs_init(from, clear_visited, Q)) return result; diff --git a/src/Graph.h b/src/Graph.h index 305cf70dcf..3ccc8a7075 100644 --- a/src/Graph.h +++ b/src/Graph.h @@ -30,9 +30,9 @@ public: /// typedef std::vector EdgePath; /// \return a vector of the vertices from which "to" can be reached - std::vector const getReachableTo(int to, bool clear_visited); + EdgePath const getReachableTo(int to, bool clear_visited); /// \return a vector of the vertices that can be reached from "from" - std::vector const + EdgePath const getReachable(int from, bool only_viewable, bool clear_visited); /// can "from" be reached from "to"? bool isReachable(int from, int to); -- 2.39.2