object: to_string() now takes a const object pointer
This commit is contained in:
@@ -24,7 +24,7 @@ uint64_t b_cstr_hash(const char *s)
|
||||
}
|
||||
|
||||
static void dict_release(struct b_object *obj);
|
||||
static void dict_to_string(struct b_object *obj, struct b_stream *out);
|
||||
static void dict_to_string(const struct b_object *obj, struct b_stream *out);
|
||||
|
||||
static struct b_object_type dict_type = {
|
||||
.t_name = "corelib::dict",
|
||||
@@ -186,7 +186,7 @@ bool b_dict_is_empty(const b_dict *dict)
|
||||
return false;
|
||||
}
|
||||
|
||||
static void dict_to_string(struct b_object *obj, struct b_stream *out)
|
||||
static void dict_to_string(const struct b_object *obj, struct b_stream *out)
|
||||
{
|
||||
struct b_dict *dict = B_DICT(obj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user