From fda1305c05bbbc073d21807aa804e08bf59db1ea Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Tue, 9 Jul 2013 23:52:43 +0200 Subject: [PATCH] small refactor --- lib/graph/graph.hpp | 6 ++++-- test/graph/test_graph.hpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/graph/graph.hpp b/lib/graph/graph.hpp index 26bc311..1483546 100644 --- a/lib/graph/graph.hpp +++ b/lib/graph/graph.hpp @@ -561,7 +561,8 @@ inline std::vector::Edge> Graph::edges( template -inline typename std::vector::Vertex >::const_iterator Graph::find(const_reference data) const +inline typename std::vector::Vertex >::const_iterator +Graph::find(const_reference data) const { return std::find_if(m_vertices.begin(), m_vertices.end(), [&data](const Vertex& v) @@ -569,7 +570,8 @@ inline typename std::vector::Vertex >::const_iterato } template -inline typename std::vector::Vertex >::iterator Graph::find(const_reference data) +inline typename std::vector::Vertex >::iterator +Graph::find(const_reference data) { return std::find_if(m_vertices.begin(), m_vertices.end(), [&data](const Vertex& v) diff --git a/test/graph/test_graph.hpp b/test/graph/test_graph.hpp index ff25048..de5c9fd 100644 --- a/test/graph/test_graph.hpp +++ b/test/graph/test_graph.hpp @@ -1,6 +1,6 @@ #include -#include "graph.hpp" +#include "graph/graph.hpp" namespace test { class TestSubsystem1DummyClassSuite; }