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

@ -40,7 +40,7 @@ static void test_xml_escape_text_append ()
const char *input = "<this isn't=\"xml\"> &";
const char *expected_output
= "foo<xml>&lt;this isn&apos;t=&quot;xml&quot;&gt; &amp;";
xml_escape_text_append (&actual_output, input);
xml_escape_text_append (actual_output, input);
SELF_CHECK (actual_output == expected_output);
}