Use StringRef instead of std::string in XmlWriter::ScopedElement

This commit is contained in:
Martin Hořeňovský committed 2021-05-29 21:47:12 +02:00
1 parent c7241bb76e
commit d9f72868b2
2 files changed
+8 -3

No files matched your search

+2 -1
View File
@@ -211,7 +211,8 @@ namespace {
}
}
XmlWriter::ScopedElement& XmlWriter::ScopedElement::writeText( std::string const& text, XmlFormatting fmt ) {
XmlWriter::ScopedElement&
XmlWriter::ScopedElement::writeText( StringRef text, XmlFormatting fmt ) {
m_writer->writeText( text, fmt );
return *this;
}