diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04 21:06:23 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04 21:06:23 +0000 |
commit | 75068e7d753cf6cbe45a4bf294000dca9bd41d8b (patch) | |
tree | c6274cc10caab08349b5585206034f41ca4a575f /src/libutil/xml-writer.cc | |
parent | aab88127321344d5818d823bff515d127108d058 (diff) |
* Use a proper namespace.
* Optimise header file usage a bit.
* Compile the parser as C++.
Diffstat (limited to 'src/libutil/xml-writer.cc')
-rw-r--r-- | src/libutil/xml-writer.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libutil/xml-writer.cc b/src/libutil/xml-writer.cc index 27235933e..20351e2c3 100644 --- a/src/libutil/xml-writer.cc +++ b/src/libutil/xml-writer.cc @@ -3,7 +3,10 @@ #include "xml-writer.hh" -XMLWriter::XMLWriter(bool indent, ostream & output) +namespace nix { + + +XMLWriter::XMLWriter(bool indent, std::ostream & output) : output(output), indent(indent) { output << "<?xml version='1.0' encoding='utf-8'?>\n"; @@ -122,3 +125,6 @@ int main(int argc, char * * argv) return 0; } #endif + + +} |