Skip to content

Commit

Permalink
change tuple to pair to get around orangec bug (will be addressed in
Browse files Browse the repository at this point in the history
  • Loading branch information
LADSoft committed Jul 16, 2024
1 parent 4f43495 commit e198f15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ocpp/ppPragma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ void ppPragma::HandleComment(Tokenizer& tk)
const Token* commaTok = tk.Next();
if (commaTok->IsKeyword() && commaTok->GetKeyword() == kw::comma)
{
std::tuple<std::wstring, const Token*> tup = MunchStrings(tk);
std::pair<std::wstring, const Token*> tup = MunchStrings(tk);
std::wstring myString = std::get<0>(tup);
afterTok = std::get<1>(tup);
if (myString.empty())
Expand All @@ -455,7 +455,7 @@ void ppPragma::HandleComment(Tokenizer& tk)
const Token* commaTok = tk.Next();
if (commaTok->IsKeyword() && commaTok->GetKeyword() == kw::comma)
{
std::tuple<std::wstring, const Token*> tup = MunchStrings(tk);
std::pair<std::wstring, const Token*> tup = MunchStrings(tk);
std::wstring myString = std::get<0>(tup);
afterTok = std::get<1>(tup);
if (myString.empty())
Expand Down Expand Up @@ -485,7 +485,7 @@ void ppPragma::HandleComment(Tokenizer& tk)
// Send specific info into the object comments
if (commaTok->IsKeyword() && commaTok->GetKeyword() == kw::comma)
{
std::tuple<std::wstring, const Token*> tup = MunchStrings(tk);
std::pair<std::wstring, const Token*> tup = MunchStrings(tk);
std::wstring myString = std::get<0>(tup);
afterTok = std::get<1>(tup);
if (myString.empty())
Expand Down

0 comments on commit e198f15

Please sign in to comment.