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:
parent
f8631e5e04
commit
de75275fe5
5 changed files with 12 additions and 12 deletions
|
@ -40,7 +40,7 @@ static void test_xml_escape_text_append ()
|
|||
const char *input = "<this isn't=\"xml\"> &";
|
||||
const char *expected_output
|
||||
= "foo<xml><this isn't="xml"> &";
|
||||
xml_escape_text_append (&actual_output, input);
|
||||
xml_escape_text_append (actual_output, input);
|
||||
|
||||
SELF_CHECK (actual_output == expected_output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue