From 0c01e2cc68d4775c3a7e7fae54918811bad65973 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Tue, 18 Jun 2024 17:34:15 -0400 Subject: [PATCH] [#7763] Replace Boost.Format in lsUtil with fmtlib. --- lib/core/src/lsUtil.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/core/src/lsUtil.cpp b/lib/core/src/lsUtil.cpp index 6dd151279a..9022326877 100644 --- a/lib/core/src/lsUtil.cpp +++ b/lib/core/src/lsUtil.cpp @@ -11,7 +11,7 @@ #include "irods/irods_query.hpp" #include "irods/escape_utilities.hpp" -#include +#include #include @@ -62,9 +62,10 @@ int lsUtil(rcComm_t *conn, const auto escaped_data_name = irods::single_quotes_to_hex(data_name); const auto escaped_coll_name = irods::single_quotes_to_hex(coll_name); - const std::string query_str{(boost::format( - "select DATA_ID where DATA_NAME = '%s' and COLL_NAME = '%s'") % escaped_data_name % escaped_coll_name).str()}; - irods::query qobj{conn, query_str}; + irods::query qobj{ + conn, + fmt::format( + "select DATA_ID where DATA_NAME = '{}' and COLL_NAME = '{}'", escaped_data_name, escaped_coll_name)}; if (qobj.size() > 0) { if (const auto id = qobj.front()[0]; !id.empty()) { rstrcpy(rodsPathInp->srcPath[i].dataId, id.c_str(), sizeof(rodsPathInp->srcPath[i].dataId));