From c70948134af3be3239b2fc1e08d1226ded3a2cdf Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 5 Aug 2023 15:43:57 +0100 Subject: Use Glib::ustring::format over boost::lexical_cast for XML numeric format --- slicer/xml/serializer.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/slicer/xml/serializer.cpp b/slicer/xml/serializer.cpp index 56cdbaa..7494c6e 100644 --- a/slicer/xml/serializer.cpp +++ b/slicer/xml/serializer.cpp @@ -1,5 +1,4 @@ #include "serializer.h" -#include #include #include #include @@ -157,37 +156,37 @@ namespace Slicer { void get(const Ice::Byte & value) const override { - apply(boost::lexical_cast(value)); + apply(Glib::ustring::format(value)); } void get(const Ice::Short & value) const override { - apply(boost::lexical_cast(value)); + apply(Glib::ustring::format(value)); } void get(const Ice::Int & value) const override { - apply(boost::lexical_cast(value)); + apply(Glib::ustring::format(value)); } void get(const Ice::Long & value) const override { - apply(boost::lexical_cast(value)); + apply(Glib::ustring::format(value)); } void get(const Ice::Float & value) const override { - apply(boost::lexical_cast(value)); + apply(Glib::ustring::format(value)); } void get(const Ice::Double & value) const override { - apply(boost::lexical_cast(value)); + apply(Glib::ustring::format(value)); } void -- cgit v1.2.3