fixup Fix to build with libxml 2.12.x (fixes #505)
[platform/upstream/libzypp.git] / zypp / ServiceInfo.cc
index 2f7c073..04bfcb2 100644 (file)
 #include <ostream>
 #include <iostream>
 
-#include "zypp/base/String.h"
-#include "zypp/base/DefaultIntegral.h"
-#include "zypp/parser/xml/XmlEscape.h"
+#include <zypp/base/String.h>
+#include <zypp/base/DefaultIntegral.h>
+#include <zypp/parser/xml/XmlEscape.h>
 
-#include "zypp/RepoInfo.h"
-#include "zypp/ServiceInfo.h"
+#include <zypp/RepoInfo.h>
+#include <zypp/ServiceInfo.h>
 
-using namespace std;
+using std::endl;
 using zypp::xml::escape;
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -85,11 +85,11 @@ namespace zypp
 
   ServiceInfo::ServiceInfo() : _pimpl( new Impl() ) {}
 
-  ServiceInfo::ServiceInfo(const string & alias)
+  ServiceInfo::ServiceInfo(const std::string & alias)
     : repo::RepoInfoBase(alias), _pimpl( new Impl() )
   {}
 
-  ServiceInfo::ServiceInfo(const string & alias, const Url & url)
+  ServiceInfo::ServiceInfo(const std::string & alias, const Url & url)
     : repo::RepoInfoBase(alias), _pimpl( new Impl(url) )
   {}
 
@@ -207,7 +207,7 @@ namespace zypp
     return str;
   }
 
-  ostream & ServiceInfo::dumpAsXmlOn( ostream & str, const string & content ) const
+  std::ostream & ServiceInfo::dumpAsXmlOn( std::ostream & str, const std::string & content ) const
   {
     str
       << "<service"
@@ -217,7 +217,7 @@ namespace zypp
       << " autorefresh=\"" << autorefresh() << "\""
       << " url=\"" << escape(url().asString()) << "\""
       << " type=\"" << type().asString() << "\""
-      << " ttl_sec\"" << ttl() << "\"";
+      << " ttl_sec=\"" << ttl() << "\"";
 
     if (content.empty())
       str << "/>" << endl;