mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qobject: Make QString immutable
The functions to modify a QString's string are all unused now. Drop them, and make the string immutable. Saves 16 bytes per QString on my system. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20201211171152.146877-21-armbru@redhat.com>
This commit is contained in:
parent
18cf67c5e1
commit
4ac76ba414
4 changed files with 4 additions and 88 deletions
|
@ -155,8 +155,7 @@ static void qobject_is_equal_string_test(void)
|
|||
str_case = qstring_from_str("Foo");
|
||||
|
||||
/* Should yield "foo" */
|
||||
str_built = qstring_from_substr("form", 0, 2);
|
||||
qstring_append_chr(str_built, 'o');
|
||||
str_built = qstring_from_substr("buffoon", 3, 6);
|
||||
|
||||
check_unequal(str_base, str_whitespace_0, str_whitespace_1,
|
||||
str_whitespace_2, str_whitespace_3, str_case);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue