gdbsupport: change xml_escape_text_append's parameter from pointer to reference

The passed in string can't be nullptr, it makes more sense to pass in a
reference.

Change-Id: Idc8bd38abe1d6d9b44aa227d7856956848c233b3
This commit is contained in:
Simon Marchi
2022-10-19 22:00:59 -04:00
parent f8631e5e04
commit de75275fe5
5 changed files with 12 additions and 12 deletions

View File

@@ -28,6 +28,6 @@ extern std::string xml_escape_text (const char *text);
/* Append TEXT to RESULT, with special characters replaced by entity
references. */
extern void xml_escape_text_append (std::string *result, const char *text);
extern void xml_escape_text_append (std::string &result, const char *text);
#endif /* COMMON_XML_UTILS_H */