浏览代码

Replace std:.endl by backslash n.

Kim Kulling 9 年之前
父节点
当前提交
97145a7f20
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      tools/assimp_cmd/CompareDump.cpp

+ 6 - 4
tools/assimp_cmd/CompareDump.cpp

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