summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-09-08 22:13:02 +1000
committer Vas Crabb <vas@vastheman.com>2019-09-08 22:13:02 +1000
commitfde41f3faddc576c28363dddfe8971cba3b6a5cc (patch)
treef1ebe93819ec40348148375b77d0441ba4ff3451 /src/lib/util
parent68d38ecac6c351f24269bf6d2287e961cc5b33a6 (diff)
render.cpp: print a warning and continue on encountering malformed XML in a layout file (nw)
Diffstat (limited to 'src/lib/util')
-rw-r--r--src/lib/util/xmlfile.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/util/xmlfile.h b/src/lib/util/xmlfile.h
index 5e55dbf310e..8d09b2b7e1e 100644
--- a/src/lib/util/xmlfile.h
+++ b/src/lib/util/xmlfile.h
@@ -45,18 +45,22 @@ enum
/* extended error information from parsing */
struct parse_error
{
- const char * error_message;
- int error_line;
- int error_column;
+ parse_error() = default;
+
+ const char * error_message = nullptr;
+ int error_line = 0;
+ int error_column = 0;
};
// parsing options
struct parse_options
{
- parse_error * error;
- void (*init_parser)(XML_ParserStruct *parser);
- uint32_t flags;
+ parse_options() = default;
+
+ parse_error * error = nullptr;
+ void (*init_parser)(XML_ParserStruct *parser) = nullptr;
+ uint32_t flags = 0;
};