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:
Marc-André Lureau 2017-08-25 12:59:06 +02:00 committed by Markus Armbruster
parent d9eba57a6a
commit e2346a1952
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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;