object: to_string() now takes a const object pointer
This commit is contained in:
@@ -23,7 +23,7 @@ enum iterator_mode {
|
||||
};
|
||||
|
||||
static void string_release(struct b_object *obj);
|
||||
static void string_to_string(struct b_object *obj, struct b_stream *out);
|
||||
static void string_to_string(const struct b_object *obj, struct b_stream *out);
|
||||
|
||||
static struct b_object_type string_type = {
|
||||
.t_name = "corelib::string",
|
||||
@@ -1644,7 +1644,7 @@ static void string_release(struct b_object *obj)
|
||||
}
|
||||
}
|
||||
|
||||
static void string_to_string(struct b_object *obj, struct b_stream *out)
|
||||
static void string_to_string(const struct b_object *obj, struct b_stream *out)
|
||||
{
|
||||
b_string *str = B_STRING(obj);
|
||||
const char *s = b_string_ptr(str);
|
||||
|
||||
Reference in New Issue
Block a user