Code

Replace std::endl in lots of places with plain old '\n', with just a single std:...
authorpjrm <pjrm@users.sourceforge.net>
Mon, 6 Mar 2006 12:20:11 +0000 (12:20 +0000)
committerpjrm <pjrm@users.sourceforge.net>
Mon, 6 Mar 2006 12:20:11 +0000 (12:20 +0000)
src/extension/dependency.cpp

index 4ccf103f60553c2f5a8f64042c4787a944eac57f..6db57174cf97c0d65fca0811946ad44eed3eb56f 100644 (file)
@@ -235,15 +235,17 @@ Dependency::check (void) const
 std::ostream &
 operator<< (std::ostream &out_file, const Dependency & in_dep)
 {
-    out_file << _("Dependency::") << std::endl;
-    out_file << _("  type: ") << _(in_dep._type_str[in_dep._type]) << std::endl;
-    out_file << _("  location: ") << _(in_dep._location_str[in_dep._location]) << std::endl;
-    out_file << _("  string: ") << in_dep._string << std::endl;
+    out_file << _("Dependency::") << '\n';
+    out_file << _("  type: ") << _(in_dep._type_str[in_dep._type]) << '\n';
+    out_file << _("  location: ") << _(in_dep._location_str[in_dep._location]) << '\n';
+    out_file << _("  string: ") << in_dep._string << '\n';
 
     if (in_dep._description != NULL) {
-        out_file << _("  description: ") << _(in_dep._description) << std::endl;
+        out_file << _("  description: ") << _(in_dep._description) << '\n';
     }
 
+    out_file << std::flush;
+
     return out_file;
 }