summaryrefslogtreecommitdiff
path: root/src/lib/j2k_image_proxy.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-23 21:50:53 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-26 00:26:40 +0100
commitcec6ff92aef45c687085ecfc1059004407c18c57 (patch)
tree8aace150067b6017498e037841a22465525b4a62 /src/lib/j2k_image_proxy.cc
parent1e324c3cac09ac886293f755d0c1527ece2f5244 (diff)
Replace raw_convert<string> with fmt::to_string().
Diffstat (limited to 'src/lib/j2k_image_proxy.cc')
-rw-r--r--src/lib/j2k_image_proxy.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/j2k_image_proxy.cc b/src/lib/j2k_image_proxy.cc
index 023723c8b..5875e7cb1 100644
--- a/src/lib/j2k_image_proxy.cc
+++ b/src/lib/j2k_image_proxy.cc
@@ -195,12 +195,12 @@ void
J2KImageProxy::add_metadata(xmlpp::Element* element) const
{
cxml::add_text_child(element, "Type", N_("J2K"));
- cxml::add_text_child(element, "Width", raw_convert<string>(_size.width));
- cxml::add_text_child(element, "Height", raw_convert<string>(_size.height));
+ cxml::add_text_child(element, "Width", fmt::to_string(_size.width));
+ cxml::add_text_child(element, "Height", fmt::to_string(_size.height));
if (_eye) {
- cxml::add_text_child(element, "Eye", raw_convert<string>(static_cast<int>(_eye.get())));
+ cxml::add_text_child(element, "Eye", fmt::to_string(static_cast<int>(_eye.get())));
}
- cxml::add_text_child(element, "Size", raw_convert<string>(_data->size()));
+ cxml::add_text_child(element, "Size", fmt::to_string(_data->size()));
}