mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qobject: Drop qstring_get_try_str()
No users left outside tests/, and the ones in tests/ can just as well use qstring_get_str(). Do that, and drop the function. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20201211171152.146877-14-armbru@redhat.com>
This commit is contained in:
parent
808ac3657e
commit
b3119b0814
3 changed files with 5 additions and 17 deletions
|
@ -139,16 +139,6 @@ const char *qstring_get_str(const QString *qstring)
|
|||
return qstring->string;
|
||||
}
|
||||
|
||||
/**
|
||||
* qstring_get_try_str(): Return a pointer to the stored string
|
||||
*
|
||||
* NOTE: will return NULL if qstring is not provided.
|
||||
*/
|
||||
const char *qstring_get_try_str(const QString *qstring)
|
||||
{
|
||||
return qstring ? qstring_get_str(qstring) : NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* qstring_is_equal(): Test whether the two QStrings are equal
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue