aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/xml-utils.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-10-19 22:00:59 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-12-15 21:56:25 -0500
commitde75275fe54c5536c8238f0f3f88bb7ac2222942 (patch)
tree521af24ffa46304fd972b179d7af347329c1ddff /gdbsupport/xml-utils.h
parentf8631e5e04dbef678323e9be6b7329f39049d2c4 (diff)
downloadfsf-binutils-gdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.zip
fsf-binutils-gdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.tar.gz
fsf-binutils-gdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.tar.bz2
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
Diffstat (limited to 'gdbsupport/xml-utils.h')
-rw-r--r--gdbsupport/xml-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbsupport/xml-utils.h b/gdbsupport/xml-utils.h
index 4df2f8a..695263c 100644
--- a/gdbsupport/xml-utils.h
+++ b/gdbsupport/xml-utils.h
@@ -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 */