about summary refs log tree commit diff
path: root/src/libutil/xml-writer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/xml-writer.hh')
-rw-r--r--src/libutil/xml-writer.hh14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/libutil/xml-writer.hh b/src/libutil/xml-writer.hh
index 8c203a3486f0..e5cc5f8c5417 100644
--- a/src/libutil/xml-writer.hh
+++ b/src/libutil/xml-writer.hh
@@ -6,7 +6,12 @@
 #include <list>
 #include <map>
 
-using namespace std;
+
+namespace nix {
+
+using std::string;
+using std::map;
+using std::list;
 
 
 typedef map<string, string> XMLAttrs;
@@ -16,7 +21,7 @@ class XMLWriter
 {
 private:
     
-    ostream & output;
+    std::ostream & output;
 
     bool indent;
     bool closed;
@@ -25,7 +30,7 @@ private:
 
 public:
 
-    XMLWriter(bool indent, ostream & output);
+    XMLWriter(bool indent, std::ostream & output);
     ~XMLWriter();
 
     void close();
@@ -63,5 +68,8 @@ public:
     }
 };
 
+ 
+}
+
 
 #endif /* !__XML_WRITER_H */