qlit: make qlit_equal_qobject() take const arguments
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20170825105913.4060-8-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
d9eba57a6a
commit
e2346a1952
@ -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 */
|
||||
|
@ -41,7 +41,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 New Issue
Block a user