* replace deprecated boost::to_lower with boost::algorithm::to_lower()

This commit is contained in:
hagen 2023-05-15 00:00:00 +00:00
parent d010d3575d
commit f2269b75f5
3 changed files with 5 additions and 3 deletions

View file

@ -10,7 +10,6 @@
#define PROFILING_H__ #define PROFILING_H__
#include <memory> #include <memory>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "Identity.h" #include "Identity.h"
namespace i2p namespace i2p

View file

@ -10,6 +10,7 @@
#include <string.h> #include <string.h>
#include "I2PEndian.h" #include "I2PEndian.h"
#include <fstream> #include <fstream>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#if (BOOST_VERSION >= 105300) #if (BOOST_VERSION >= 105300)
@ -478,7 +479,7 @@ namespace data
else if (!strcmp (key, ROUTER_INFO_PROPERTY_FAMILY)) else if (!strcmp (key, ROUTER_INFO_PROPERTY_FAMILY))
{ {
family = value; family = value;
boost::to_lower (family); boost::algorithm::to_lower (family);
} }
else if (!strcmp (key, ROUTER_INFO_PROPERTY_FAMILY_SIG)) else if (!strcmp (key, ROUTER_INFO_PROPERTY_FAMILY_SIG))
{ {

View file

@ -16,6 +16,8 @@
#include "HTTP.h" #include "HTTP.h"
#include "util.h" #include "util.h"
#include <boost/algorithm/string.hpp>
using namespace i2p::data; using namespace i2p::data;
namespace i2p namespace i2p
@ -955,7 +957,7 @@ namespace transport
m_TrustedFamilies.clear(); m_TrustedFamilies.clear();
for (auto fam : families) for (auto fam : families)
{ {
boost::to_lower (fam); boost::algorithm::to_lower (fam);
auto id = i2p::data::netdb.GetFamilies ().GetFamilyID (fam); auto id = i2p::data::netdb.GetFamilies ().GetFamilyID (fam);
if (id) if (id)
m_TrustedFamilies.push_back (id); m_TrustedFamilies.push_back (id);