mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
xml-writer: Remove std aliases
This commit is contained in:
parent
fd4b693ca2
commit
14b38d0887
3 changed files with 12 additions and 14 deletions
|
@ -31,11 +31,12 @@ void XMLWriter::close()
|
|||
void XMLWriter::indent_(size_t depth)
|
||||
{
|
||||
if (!indent) return;
|
||||
output << string(depth * 2, ' ');
|
||||
output << std::string(depth * 2, ' ');
|
||||
}
|
||||
|
||||
|
||||
void XMLWriter::openElement(const string & name,
|
||||
void XMLWriter::openElement(
|
||||
std::string_view name,
|
||||
const XMLAttrs & attrs)
|
||||
{
|
||||
assert(!closed);
|
||||
|
@ -44,7 +45,7 @@ void XMLWriter::openElement(const string & name,
|
|||
writeAttrs(attrs);
|
||||
output << ">";
|
||||
if (indent) output << std::endl;
|
||||
pendingElems.push_back(name);
|
||||
pendingElems.push_back(std::string(name));
|
||||
}
|
||||
|
||||
|
||||
|
@ -59,7 +60,8 @@ void XMLWriter::closeElement()
|
|||
}
|
||||
|
||||
|
||||
void XMLWriter::writeEmptyElement(const string & name,
|
||||
void XMLWriter::writeEmptyElement(
|
||||
std::string_view name,
|
||||
const XMLAttrs & attrs)
|
||||
{
|
||||
assert(!closed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue