Przeglądaj źródła

Replace std::endl by using backslash n.

Kim Kulling 9 lat temu
rodzic
commit
5192b837da
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      code/BlenderDNA.cpp

+ 4 - 2
code/BlenderDNA.cpp

@@ -239,10 +239,12 @@ void DNA :: DumpToFile()
     for(const Structure& s : structures) {
         f << s.name << " " << s.size << "\n\n";
         for(const Field& ff : s.fields) {
-            f << "\t" << ff.type << " " << ff.name << " " << ff.offset << " " << ff.size << std::endl;
+            f << "\t" << ff.type << " " << ff.name << " " << ff.offset << " " << ff.size << "\n";
         }
-        f << std::endl;
+        f << "\n";
     }
+    f << std::flush;
+
     DefaultLogger::get()->info("BlenderDNA: Dumped dna to dna.txt");
 }
 #endif