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(); }