style(3p/nix): Remove 'using std::*' from types.hh
It is considered bad form to use things from includes in headers, as these directives propagate to everywhere else and can make it confusing. types.hh (which is includes almost literally everywhere) had some of these directives, which this commit removes.
This commit is contained in:
parent
f30b2e610d
commit
838f86b0fd
85 changed files with 859 additions and 821 deletions
10
third_party/nix/src/libutil/xml-writer.hh
vendored
10
third_party/nix/src/libutil/xml-writer.hh
vendored
|
|
@ -11,7 +11,7 @@ using std::list;
|
|||
using std::map;
|
||||
using std::string;
|
||||
|
||||
typedef map<string, string> XMLAttrs;
|
||||
typedef map<std::string, std::string> XMLAttrs;
|
||||
|
||||
class XMLWriter {
|
||||
private:
|
||||
|
|
@ -20,7 +20,7 @@ class XMLWriter {
|
|||
bool indent;
|
||||
bool closed;
|
||||
|
||||
list<string> pendingElems;
|
||||
std::list<std::string> pendingElems;
|
||||
|
||||
public:
|
||||
XMLWriter(bool indent, std::ostream& output);
|
||||
|
|
@ -28,10 +28,10 @@ class XMLWriter {
|
|||
|
||||
void close();
|
||||
|
||||
void openElement(const string& name, const XMLAttrs& attrs = XMLAttrs());
|
||||
void openElement(const std::string& name, const XMLAttrs& attrs = XMLAttrs());
|
||||
void closeElement();
|
||||
|
||||
void writeEmptyElement(const string& name,
|
||||
void writeEmptyElement(const std::string& name,
|
||||
const XMLAttrs& attrs = XMLAttrs());
|
||||
|
||||
private:
|
||||
|
|
@ -45,7 +45,7 @@ class XMLOpenElement {
|
|||
XMLWriter& writer;
|
||||
|
||||
public:
|
||||
XMLOpenElement(XMLWriter& writer, const string& name,
|
||||
XMLOpenElement(XMLWriter& writer, const std::string& name,
|
||||
const XMLAttrs& attrs = XMLAttrs())
|
||||
: writer(writer) {
|
||||
writer.openElement(name, attrs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue