From 97145a7f20d6ec24290fee50c2db56d4231a2b80 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 27 Apr 2016 17:59:12 +0200 Subject: [PATCH] Replace std:.endl by backslash n. --- tools/assimp_cmd/CompareDump.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/assimp_cmd/CompareDump.cpp b/tools/assimp_cmd/CompareDump.cpp index f559790f6..1821ff6ec 100644 --- a/tools/assimp_cmd/CompareDump.cpp +++ b/tools/assimp_cmd/CompareDump.cpp @@ -245,7 +245,7 @@ private: /** print our 'stack' */ std::string print_hierarchy() { std::stringstream ss; - ss << std::endl; + ss << "\n"; const char* last = history.back().first.c_str(); std::string pad; @@ -253,14 +253,16 @@ private: for(ChunkHistory::reverse_iterator rev = history.rbegin(), end = history.rend(); rev != end; ++rev, pad += " ") { - ss << pad << (*rev).first << "(Index: " << (*rev).second[last] << ")" << std::endl; + ss << pad << (*rev).first << "(Index: " << (*rev).second[last] << ")" << "\n"; last = (*rev).first.c_str(); } - ss << std::endl << "Debug trace: "<< std::endl; + ss << std::endl << "Debug trace: "<< "\n"; for (std::vector::const_iterator it = debug_trace.begin(); it != debug_trace.end(); ++it) { - ss << *it << std::endl; + ss << *it << "\n"; } + ss << std::flush; + return ss.str(); }