Imported Upstream version 17.0.0
[platform/upstream/libzypp.git] / zypp / target / rpm / RpmException.cc
index 90a29be..c17ba20 100644 (file)
@@ -15,8 +15,6 @@
 
 #include "zypp/target/rpm/RpmException.h"
 
-using namespace std;
-
 ///////////////////////////////////////////////////////////////////
 namespace zypp
 { /////////////////////////////////////////////////////////////////
@@ -30,51 +28,51 @@ namespace rpm
 std::ostream & RpmInvalidRootException::dumpOn( std::ostream & str ) const
 {
   return str << "Illegal root " << _root
-         << " or dbPath " << _dbpath << endl;
+         << " or dbPath " << _dbpath;
 }
 
 std::ostream & RpmAccessBlockedException::dumpOn( std::ostream & str ) const
 {
   return str << "Access is blocked: Root: " << _root
-         << " dbPath: " << _dbpath << endl;
+         << " dbPath: " << _dbpath;
 }
 
 std::ostream & RpmSubprocessException::dumpOn( std::ostream & str ) const
 {
-  return str << "Subprocess failed. Error: " << _errmsg << endl;
+  return str << "Subprocess failed. Error: " << _errmsg;
 }
 
 std::ostream & RpmInitException::dumpOn( std::ostream & str) const
 {
   return str << "Failed to initialize database: Root: " << _root
-         << " dbPath: " << _dbpath << endl;
+         << " dbPath: " << _dbpath;
 }
 
 std::ostream & RpmDbOpenException::dumpOn( std::ostream & str) const
 {
   return str << "Failed to open database: Root: " << _root
-         << " dbPath: " << _dbpath << endl;
+         << " dbPath: " << _dbpath;
 }
 
 std::ostream & RpmDbAlreadyOpenException::dumpOn( std::ostream & str) const
 {
   return str << "Can't switch to " << _new_root << " " << _new_dbpath
-         << " while accessing " << _old_root << " " << _old_dbpath << endl;
+         << " while accessing " << _old_root << " " << _old_dbpath;
 }
 
 std::ostream & RpmDbNotOpenException::dumpOn( std::ostream & str) const
 {
-  return str << "RPM database not open" << endl;
+  return str << "RPM database not open";
 }
 
 std::ostream & RpmDbConvertException::dumpOn( std::ostream & str) const
 {
-  return str << "RPM database conversion failed" << endl;
+  return str << "RPM database conversion failed";
 }
 
 std::ostream & RpmNullDatabaseException::dumpOn( std::ostream & str) const
 {
-  return str << "NULL rpmV4 database passed as argument!" << endl;
+  return str << "NULL rpmV4 database passed as argument!";
 }
 
 /////////////////////////////////////////////////////////////////