Skip to content

Commit

Permalink
Fix spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklax committed Dec 13, 2021
1 parent 86718ac commit 07d9e17
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cyren.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ void cyren_as(HalonHSLContext* hhc, HalonHSLArguments* args, HalonHSLValue* ret)
}

HalonMTA_hsl_value_set(ret, HALONMTA_HSL_TYPE_ARRAY, nullptr, 0);
auto ss = std::stringstream(data);
for (std::string line; std::getline(ss, line, '\n');)
auto ss = std::stringstream(data);
for (std::string line; std::getline(ss, line, '\n');)
{
line.erase(line.find_last_not_of(" \n\r\t") + 1);
auto colon = line.find(':');
Expand Down Expand Up @@ -283,8 +283,8 @@ void cyren_as(HalonHSLContext* hhc, HalonHSLArguments* args, HalonHSLValue* ret)
HalonMTA_hsl_value_set(v, HALONMTA_HSL_TYPE_ARRAY, nullptr, 0);
HalonHSLValue *k2, *v2;
double index = 0;
auto ss2 = std::stringstream(value);
for (std::string rule; std::getline(ss2, rule, ','); ++index)
auto ss2 = std::stringstream(value);
for (std::string rule; std::getline(ss2, rule, ','); ++index)
{
if (rule.empty()) continue;
HalonMTA_hsl_value_array_add(v, &k2, &v2);
Expand Down Expand Up @@ -429,8 +429,8 @@ void cyren_ip(HalonHSLContext* hhc, HalonHSLArguments* args, HalonHSLValue* ret)
}

HalonMTA_hsl_value_set(ret, HALONMTA_HSL_TYPE_ARRAY, nullptr, 0);
auto ss = std::stringstream(data);
for (std::string line; std::getline(ss, line, '\n');)
auto ss = std::stringstream(data);
for (std::string line; std::getline(ss, line, '\n');)
{
line.erase(line.find_last_not_of(" \n\r\t") + 1);
auto colon = line.find(':');
Expand Down

0 comments on commit 07d9e17

Please sign in to comment.