From 75068e7d753cf6cbe45a4bf294000dca9bd41d8b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 4 Sep 2006 21:06:23 +0000 Subject: * Use a proper namespace. * Optimise header file usage a bit. * Compile the parser as C++. --- src/libutil/xml-writer.hh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/libutil/xml-writer.hh') 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 #include -using namespace std; + +namespace nix { + +using std::string; +using std::map; +using std::list; typedef map 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 */ -- cgit 1.4.1