minor refactor
This commit is contained in:
+1
-1
@@ -337,7 +337,7 @@ xmldocument Parser::parse() {
|
||||
return document;
|
||||
}
|
||||
|
||||
xmldocument xml::parse(const std::string& filename, const std::string& source) {
|
||||
xmldocument xml::parse(std::string_view filename, std::string_view source) {
|
||||
Parser parser(filename, source);
|
||||
return parser.parse();
|
||||
}
|
||||
|
||||
+1
-1
@@ -140,6 +140,6 @@ namespace xml {
|
||||
/// @param source xml source code string
|
||||
/// @return xml document
|
||||
extern xmldocument parse(
|
||||
const std::string& filename, const std::string& source
|
||||
std::string_view filename, std::string_view source
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user