mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 14:51:00 +00:00
qlit: make qlit_equal_qobject() take const arguments
Backports commit e2346a19521c6cce417250c75adb0b3a7cd5535a from qemu
This commit is contained in:
parent
966cac10a7
commit
2833ad4f4c
|
@ -44,6 +44,6 @@ struct QLitDictEntry {
|
|||
#define QLIT_QLIST(val) \
|
||||
{ .type = QTYPE_QLIST, .value.qlist = (val) }
|
||||
|
||||
bool qlit_equal_qobject(QLitObject *lhs, QObject *rhs);
|
||||
bool qlit_equal_qobject(const QLitObject *lhs, const QObject *rhs);
|
||||
|
||||
#endif /* QLIT_H */
|
||||
|
|
|
@ -45,7 +45,7 @@ static void compare_helper(QObject *obj, void *opaque)
|
|||
qlit_equal_qobject(&helper->objs[helper->index++], obj);
|
||||
}
|
||||
|
||||
bool qlit_equal_qobject(QLitObject *lhs, QObject *rhs)
|
||||
bool qlit_equal_qobject(const QLitObject *lhs, const QObject *rhs)
|
||||
{
|
||||
int64_t val;
|
||||
|
||||
|
|
Loading…
Reference in a new issue