Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelEbert committed Aug 4, 2023
1 parent 2310670 commit f67dc26
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Localization/LocalizationDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ std::pair<std::string, std::string> commonItems::LocalizationDatabase::Determine
{
return {};
}
const auto isspace = [](char x) {return std::isspace(x);});
const auto isspace = [](char x) {
return std::isspace(x);});
const auto first_non_space = std::ranges::find_if_not(line, isspace);
if (first_non_space == line.end() || *first_non_space == '#')

if (first_non_space == line.end() || *first_non_space == '#')
{
return {};
}
Expand Down Expand Up @@ -142,7 +143,7 @@ std::pair<std::string, std::string> commonItems::LocalizationDatabase::Determine
}

const auto value = new_line.substr(quote_index + 1, quote_two_index - quote_index - 1);
return {std::string(key, std::string(value)};
return {std::string(key), std::string(value)};
}


Expand Down

0 comments on commit f67dc26

Please sign in to comment.