diff options
| author | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
| commit | 70643a9e4821bd11c3f363f1708fe420965467d1 (patch) | |
| tree | 65572b58e247248846628940a2aaca197a15d784 /server/src/xml.cpp | |
| parent | 173cd34bdd0717d3f4beeac76b3296ecd46ada0d (diff) | |
| download | routemon-70643a9e4821bd11c3f363f1708fe420965467d1.tar.gz routemon-70643a9e4821bd11c3f363f1708fe420965467d1.zip | |
Format again
Diffstat (limited to 'server/src/xml.cpp')
| -rw-r--r-- | server/src/xml.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/xml.cpp b/server/src/xml.cpp index c1b4358..7cf4415 100644 --- a/server/src/xml.cpp +++ b/server/src/xml.cpp | |||
| @@ -22,7 +22,7 @@ executor::executor() : p_{XML_ParserCreateNS("UTF-8", detail::qname_sep)} | |||
| 22 | XML_SetProcessingInstructionHandler(p_, handle_processing_instructions); | 22 | XML_SetProcessingInstructionHandler(p_, handle_processing_instructions); |
| 23 | XML_SetExternalEntityRefHandler(p_, handle_external_entity_ref); | 23 | XML_SetExternalEntityRefHandler(p_, handle_external_entity_ref); |
| 24 | XML_SetNamespaceDeclHandler( | 24 | XML_SetNamespaceDeclHandler( |
| 25 | p_, handle_start_namespace_decl, handle_end_namespace_decl); | 25 | p_, handle_start_namespace_decl, handle_end_namespace_decl); |
| 26 | XML_SetXmlDeclHandler(p_, handle_xml_decl); | 26 | XML_SetXmlDeclHandler(p_, handle_xml_decl); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| @@ -41,7 +41,7 @@ auto executor::read(std::string_view xml, bool is_final) -> void | |||
| 41 | throw std::runtime_error{"refusing to restart parser that was thrown in"}; | 41 | throw std::runtime_error{"refusing to restart parser that was thrown in"}; |
| 42 | // TODO: narrow_cast | 42 | // TODO: narrow_cast |
| 43 | if (auto s = | 43 | if (auto s = |
| 44 | XML_Parse(p_, xml.data(), static_cast<int>(xml.size()), is_final); | 44 | XML_Parse(p_, xml.data(), static_cast<int>(xml.size()), is_final); |
| 45 | s != XML_STATUS_OK) | 45 | s != XML_STATUS_OK) |
| 46 | { | 46 | { |
| 47 | auto errc = XML_GetErrorCode(p_); | 47 | auto errc = XML_GetErrorCode(p_); |
| @@ -53,7 +53,7 @@ auto executor::read(std::string_view xml, bool is_final) -> void | |||
| 53 | else | 53 | else |
| 54 | { | 54 | { |
| 55 | throw std::runtime_error{std::format( | 55 | throw std::runtime_error{std::format( |
| 56 | "failed to parse XML: {}", XML_ErrorString(errc))}; | 56 | "failed to parse XML: {}", XML_ErrorString(errc))}; |
| 57 | } | 57 | } |
| 58 | } | 58 | } |
| 59 | } | 59 | } |