diff options
author | Markus Armbruster <armbru@redhat.com> | 2017-02-17 21:38:20 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-02-22 19:52:06 +0100 |
commit | 363e13f86eb60bce1e112a35a4c107505a69c9fe (patch) | |
tree | 76361fe0824ba2f7488e03af988905b1f307f468 /HACKING | |
parent | cd17ba51f5b25196c52afe5dfdd27c7dc8621cf4 (diff) |
tests: Don't check qobject_type() before qobject_to_qstring()
qobject_to_qstring(obj) returns NULL when obj isn't a QString. Check
that instead of qobject_type(obj) == QTYPE_QSTRING.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487363905-9480-10-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions