mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:30:06 +00:00
Archive warnings clang-tidy fixes
This commit is contained in:
parent
8cdd8526eb
commit
81f09e07f0
14 changed files with 43 additions and 46 deletions
|
|
@ -50,9 +50,9 @@ IemApiProvider::ListTextProducts(std::chrono::sys_days date,
|
|||
std::optional<std::string_view> optionalCccc,
|
||||
std::optional<std::string_view> optionalPil)
|
||||
{
|
||||
std::string_view cccc =
|
||||
const std::string_view cccc =
|
||||
optionalCccc.has_value() ? optionalCccc.value() : std::string_view {};
|
||||
std::string_view pil =
|
||||
const std::string_view pil =
|
||||
optionalPil.has_value() ? optionalPil.value() : std::string_view {};
|
||||
|
||||
const auto dateArray = std::array {date};
|
||||
|
|
@ -72,7 +72,7 @@ IemApiProvider::ProcessTextProductLists(
|
|||
{
|
||||
auto response = asyncResponse.get();
|
||||
|
||||
boost::json::value json = util::json::ReadJsonString(response.text);
|
||||
const boost::json::value json = util::json::ReadJsonString(response.text);
|
||||
|
||||
if (response.status_code == cpr::status::HTTP_OK)
|
||||
{
|
||||
|
|
@ -161,7 +161,7 @@ IemApiProvider::ProcessTextProductFiles(
|
|||
{
|
||||
// Load file
|
||||
auto& productId = asyncResponse.first;
|
||||
std::shared_ptr<awips::TextProductFile> textProductFile {
|
||||
const std::shared_ptr<awips::TextProductFile> textProductFile {
|
||||
std::make_shared<awips::TextProductFile>()};
|
||||
std::istringstream responseBody {response.text};
|
||||
if (textProductFile->LoadData(productId, responseBody))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue