Replace std:.endl by backslash n.

pull/873/head
Kim Kulling 2016-04-27 17:59:12 +02:00
parent 5192b837da
commit 97145a7f20
1 changed files with 6 additions and 4 deletions

View File

@ -245,7 +245,7 @@ private:
/** print our 'stack' */ /** print our 'stack' */
std::string print_hierarchy() { std::string print_hierarchy() {
std::stringstream ss; std::stringstream ss;
ss << std::endl; ss << "\n";
const char* last = history.back().first.c_str(); const char* last = history.back().first.c_str();
std::string pad; std::string pad;
@ -253,14 +253,16 @@ private:
for(ChunkHistory::reverse_iterator rev = history.rbegin(), for(ChunkHistory::reverse_iterator rev = history.rbegin(),
end = history.rend(); rev != end; ++rev, pad += " ") 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(); last = (*rev).first.c_str();
} }
ss << std::endl << "Debug trace: "<< std::endl; ss << std::endl << "Debug trace: "<< "\n";
for (std::vector<std::string>::const_iterator it = debug_trace.begin(); it != debug_trace.end(); ++it) { for (std::vector<std::string>::const_iterator it = debug_trace.begin(); it != debug_trace.end(); ++it) {
ss << *it << std::endl; ss << *it << "\n";
} }
ss << std::flush;
return ss.str(); return ss.str();
} }