mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Replaces the usage of boost::string_view with std::string_view (#4509)
This commit is contained in:
committed by
GitHub
parent
06733ec21a
commit
825864032a
@@ -185,7 +185,7 @@ class NFTokenDir_test : public beast::unit_test::suite
|
||||
// Create accounts for all of the seeds and fund those accounts.
|
||||
std::vector<Account> accounts;
|
||||
accounts.reserve(seeds.size());
|
||||
for (std::string_view const& seed : seeds)
|
||||
for (std::string_view seed : seeds)
|
||||
{
|
||||
Account const& account = accounts.emplace_back(
|
||||
Account::base58Seed, std::string(seed));
|
||||
@@ -409,7 +409,7 @@ class NFTokenDir_test : public beast::unit_test::suite
|
||||
// Create accounts for all of the seeds and fund those accounts.
|
||||
std::vector<Account> accounts;
|
||||
accounts.reserve(seeds.size());
|
||||
for (std::string_view const& seed : seeds)
|
||||
for (std::string_view seed : seeds)
|
||||
{
|
||||
Account const& account = accounts.emplace_back(
|
||||
Account::base58Seed, std::string(seed));
|
||||
@@ -659,7 +659,7 @@ class NFTokenDir_test : public beast::unit_test::suite
|
||||
// Create accounts for all of the seeds and fund those accounts.
|
||||
std::vector<Account> accounts;
|
||||
accounts.reserve(seeds.size());
|
||||
for (std::string_view const& seed : seeds)
|
||||
for (std::string_view seed : seeds)
|
||||
{
|
||||
Account const& account =
|
||||
accounts.emplace_back(Account::base58Seed, std::string(seed));
|
||||
@@ -840,7 +840,7 @@ class NFTokenDir_test : public beast::unit_test::suite
|
||||
// Create accounts for all of the seeds and fund those accounts.
|
||||
std::vector<Account> accounts;
|
||||
accounts.reserve(seeds.size());
|
||||
for (std::string_view const& seed : seeds)
|
||||
for (std::string_view seed : seeds)
|
||||
{
|
||||
Account const& account =
|
||||
accounts.emplace_back(Account::base58Seed, std::string(seed));
|
||||
|
||||
@@ -574,7 +574,7 @@ private:
|
||||
if (ec)
|
||||
break;
|
||||
|
||||
std::string path = req.target();
|
||||
std::string_view const path = req.target();
|
||||
res.insert("Server", "TrustedPublisherServer");
|
||||
res.version(req.version());
|
||||
res.keep_alive(req.keep_alive());
|
||||
@@ -677,7 +677,9 @@ private:
|
||||
// unknown request
|
||||
res.result(boost::beast::http::status::not_found);
|
||||
res.insert("Content-Type", "text/html");
|
||||
res.body() = "The file '" + path + "' was not found";
|
||||
res.body() = "The file '" + std::string(path) +
|
||||
"' was not "
|
||||
"found";
|
||||
}
|
||||
|
||||
if (prepare)
|
||||
|
||||
Reference in New Issue
Block a user