mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:30:05 +00:00
IEM API provider should use std::string instead of std::string_view for abseil compatibility
This commit is contained in:
parent
d00b2fe063
commit
3f83c8e4a9
1 changed files with 2 additions and 2 deletions
|
|
@ -139,7 +139,7 @@ IemApiProvider::LoadTextProducts(const std::vector<std::string>& textProducts)
|
||||||
{
|
{
|
||||||
auto parameters = cpr::Parameters {{"nolimit", "true"}};
|
auto parameters = cpr::Parameters {{"nolimit", "true"}};
|
||||||
|
|
||||||
std::vector<std::pair<std::string_view, cpr::AsyncResponse>>
|
std::vector<std::pair<const std::string&, cpr::AsyncResponse>>
|
||||||
asyncResponses {};
|
asyncResponses {};
|
||||||
asyncResponses.reserve(textProducts.size());
|
asyncResponses.reserve(textProducts.size());
|
||||||
|
|
||||||
|
|
@ -163,7 +163,7 @@ IemApiProvider::LoadTextProducts(const std::vector<std::string>& textProducts)
|
||||||
if (response.status_code == cpr::status::HTTP_OK)
|
if (response.status_code == cpr::status::HTTP_OK)
|
||||||
{
|
{
|
||||||
// Load file
|
// Load file
|
||||||
auto productId = asyncResponse.first;
|
auto& productId = asyncResponse.first;
|
||||||
std::shared_ptr<awips::TextProductFile> textProductFile {
|
std::shared_ptr<awips::TextProductFile> textProductFile {
|
||||||
std::make_shared<awips::TextProductFile>()};
|
std::make_shared<awips::TextProductFile>()};
|
||||||
std::istringstream responseBody {response.text};
|
std::istringstream responseBody {response.text};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue