From 50365af6b0711138be112093ff6c8549b50dd78f Mon Sep 17 00:00:00 2001 From: Ben Cumming <bcumming@cscs.ch> Date: Thu, 28 Jan 2016 07:22:14 +0100 Subject: [PATCH] remove std::endl and relative paths for headers --- src/cell_tree.hpp | 6 +++--- tests/test_swcio.cpp | 4 ++-- tests/test_tree.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cell_tree.hpp b/src/cell_tree.hpp index e6ba5b2e..0d4c496f 100644 --- a/src/cell_tree.hpp +++ b/src/cell_tree.hpp @@ -122,15 +122,15 @@ class cell_tree { std::ofstream fid(fname); - fid << "graph cell {" << std::endl; + fid << "graph cell {" << '\n'; for(auto b : range(0,num_segments())) { if(children(b).size()) { for(auto c : children(b)) { - fid << " " << b << " -- " << c << ";" << std::endl; + fid << " " << b << " -- " << c << ";" << '\n'; } } } - fid << "}" << std::endl; + fid << "}" << std::endl; // flush at end of output? } index_type depth_from_leaf() diff --git a/tests/test_swcio.cpp b/tests/test_swcio.cpp index 3c88661f..5a11a5ed 100644 --- a/tests/test_swcio.cpp +++ b/tests/test_swcio.cpp @@ -5,7 +5,7 @@ #include "gtest.h" -#include "../src/swcio.hpp" +#include <swcio.hpp> // SWC tests void expect_cell_equals(const neuron::io::cell_record &expected, @@ -187,7 +187,7 @@ TEST(swc_parser, from_allen_db) auto fname = "../data/example.swc"; std::ifstream fid(fname); if(!fid.is_open()) { - std::cerr << "unable to open file " << fname << "... skipping test" << std::endl; + std::cerr << "unable to open file " << fname << "... skipping test\n"; return; } diff --git a/tests/test_tree.cpp b/tests/test_tree.cpp index a0bd0742..58435e15 100644 --- a/tests/test_tree.cpp +++ b/tests/test_tree.cpp @@ -5,7 +5,7 @@ #include "gtest.h" -#include "../src/cell_tree.hpp" +#include <cell_tree.hpp> #include "json/src/json.hpp" using json = nlohmann::json; -- GitLab