1818 * along with OpenAWE. If not, see <http://www.gnu.org/licenses/>.
1919 */
2020
21- #include < fmt/format.h>
2221#include < glm/gtx/string_cast.hpp>
2322#include < utility>
2423
@@ -110,7 +109,7 @@ void ObjectXMLWriteStream::variable(const std::string &name, GID &value) {
110109 auto &typeNode = newVariableNode.addNewNode (" type" );
111110 typeNode.content = std::to_string (value.type );
112111 auto &hashNode = newVariableNode.addNewNode (" hash" );
113- hashNode.content = fmt ::format (" 0x{:x}" , value.id );
112+ hashNode.content = std ::format (" 0x{:x}" , value.id );
114113}
115114
116115void ObjectXMLWriteStream::variable (const std::string &name, ObjectID &value) {
@@ -120,7 +119,7 @@ void ObjectXMLWriteStream::variable(const std::string &name, ObjectID &value) {
120119 auto &typeNode = newVariableNode.addNewNode (" type" );
121120 typeNode.content = std::to_string (value.getType ());
122121 auto &hashNode = newVariableNode.addNewNode (" id" );
123- hashNode.content = fmt ::format (" 0x{:x}" , value.getID ());
122+ hashNode.content = std ::format (" 0x{:x}" , value.getID ());
124123}
125124
126125void ObjectXMLWriteStream::variable (const std::string &name, std::vector<bool > &value, size_t fixedSize) {
@@ -182,7 +181,7 @@ void ObjectXMLWriteStream::variable(const std::string &name, std::vector<rid_t>
182181
183182 for (const auto &item: value) {
184183 auto &itemNode = newVariableNode.addNewNode (" item" );
185- itemNode.content = fmt ::format (" {:x}" , item);
184+ itemNode.content = std ::format (" {:x}" , item);
186185 }
187186}
188187
@@ -236,7 +235,7 @@ void ObjectXMLWriteStream::variable(const std::string &name, std::vector<GID> &v
236235 typeNode.content = std::to_string (gid.type );
237236
238237 auto &idNode = itemNode.addNewNode (" id" );
239- idNode.content = fmt ::format (" {:x}" , gid.id );
238+ idNode.content = std ::format (" {:x}" , gid.id );
240239 }
241240}
242241
0 commit comments