io: path: update to_string callback to use b_stream

This commit is contained in:
2025-06-27 21:51:39 +01:00
parent eaa556330e
commit 56e35ae07d

View File

@@ -18,7 +18,7 @@ struct b_path {
}; };
static void path_release(struct b_object *obj); static void path_release(struct b_object *obj);
static void path_to_string(struct b_object *obj, struct b_stringstream *out); static void path_to_string(struct b_object *obj, struct b_stream *out);
static struct b_object_type path_type = { static struct b_object_type path_type = {
.t_name = "corelib::path", .t_name = "corelib::path",
@@ -296,9 +296,9 @@ void path_release(struct b_object *obj)
b_string_release(path->pathstr); b_string_release(path->pathstr);
} }
void path_to_string(struct b_object *obj, struct b_stringstream *out) void path_to_string(struct b_object *obj, struct b_stream *out)
{ {
struct b_path *path = (struct b_path *)obj; struct b_path *path = (struct b_path *)obj;
b_stringstream_add(out, b_string_ptr(path->pathstr)); b_stream_write_string(out, b_string_ptr(path->pathstr), NULL);
} }