mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 08:17:38 +01:00
* replace deprecated boost::to_lower with boost::algorithm::to_lower()
This commit is contained in:
parent
d010d3575d
commit
f2269b75f5
3 changed files with 5 additions and 3 deletions
|
@ -10,7 +10,6 @@
|
|||
#define PROFILING_H__
|
||||
|
||||
#include <memory>
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include "Identity.h"
|
||||
|
||||
namespace i2p
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <string.h>
|
||||
#include "I2PEndian.h"
|
||||
#include <fstream>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#if (BOOST_VERSION >= 105300)
|
||||
|
@ -478,7 +479,7 @@ namespace data
|
|||
else if (!strcmp (key, ROUTER_INFO_PROPERTY_FAMILY))
|
||||
{
|
||||
family = value;
|
||||
boost::to_lower (family);
|
||||
boost::algorithm::to_lower (family);
|
||||
}
|
||||
else if (!strcmp (key, ROUTER_INFO_PROPERTY_FAMILY_SIG))
|
||||
{
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
#include "HTTP.h"
|
||||
#include "util.h"
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
using namespace i2p::data;
|
||||
|
||||
namespace i2p
|
||||
|
@ -955,7 +957,7 @@ namespace transport
|
|||
m_TrustedFamilies.clear();
|
||||
for (auto fam : families)
|
||||
{
|
||||
boost::to_lower (fam);
|
||||
boost::algorithm::to_lower (fam);
|
||||
auto id = i2p::data::netdb.GetFamilies ().GetFamilyID (fam);
|
||||
if (id)
|
||||
m_TrustedFamilies.push_back (id);
|
||||
|
|
Loading…
Add table
Reference in a new issue