From 0a94db7164164d1ca32db61e4fa7c11116a3a124 Mon Sep 17 00:00:00 2001 From: pjrm Date: Mon, 6 Mar 2006 12:20:11 +0000 Subject: [PATCH] Replace std::endl in lots of places with plain old '\n', with just a single std::flush per dependency. --- src/extension/dependency.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/extension/dependency.cpp b/src/extension/dependency.cpp index 4ccf103f6..6db57174c 100644 --- a/src/extension/dependency.cpp +++ b/src/extension/dependency.cpp @@ -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; } -- 2.30.2