diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-06 10:58:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-20 18:25:09 +0100 |
| commit | 0e5013e1a96af81e4b501ff0c3192c10a061a2c8 (patch) | |
| tree | 49acd96a9e6c70919a6d2c40fc14688ac6319e1b /src/lib/encode_server.cc | |
| parent | 45fc375d656e99218ca8ec3281aa2605e148b521 (diff) | |
Remove all use of add_child() from xmlpp.
Diffstat (limited to 'src/lib/encode_server.cc')
| -rw-r--r-- | src/lib/encode_server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/encode_server.cc b/src/lib/encode_server.cc index 7eae4375f..b9c907e05 100644 --- a/src/lib/encode_server.cc +++ b/src/lib/encode_server.cc @@ -301,8 +301,8 @@ EncodeServer::broadcast_received () /* Reply to the client saying what we can do */ xmlpp::Document doc; auto root = doc.create_root_node ("ServerAvailable"); - root->add_child("Threads")->add_child_text (raw_convert<string> (_worker_threads.size ())); - root->add_child("Version")->add_child_text (raw_convert<string> (SERVER_LINK_VERSION)); + cxml::add_text_child(root, "Threads", raw_convert<string>(_worker_threads.size())); + cxml::add_text_child(root, "Version", raw_convert<string>(SERVER_LINK_VERSION)); auto xml = doc.write_to_string ("UTF-8"); if (_verbose) { |
