Skip to content

Commit

Permalink
template keyword before function
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettDev committed Mar 2, 2024
1 parent 9df315f commit 6b2b5e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/listfetcher/ListFetcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ void ListFetcher::getRandomNormalListLevel(GJDifficulty difficulty, level_pair_t
response.levels.erase(
std::remove_if(
response.levels.begin(), response.levels.end(),
[=](const auto& level) {
return level.stars == 1;
}
[=](const auto& level) { return level.stars == 1; }
),
response.levels.end()
);
Expand Down Expand Up @@ -95,7 +93,7 @@ void ListFetcher::getRandomDemonListLevel(level_pair_t& level, std::string& erro
randomIndex = rl::utils::randomInt(0, fjson.as_array().size() - 1);
} while (fjson[randomIndex]["level_id"].is_null());

int levelId = fjson[randomIndex].get<int>("level_id");
int levelId = fjson[randomIndex].template get<int>("level_id");
getLevelInfo(levelId, level, error);
})
.expect([&](const auto& err) {
Expand Down Expand Up @@ -127,7 +125,7 @@ void ListFetcher::getRandomChallengeListLevel(level_pair_t& level, std::string&
randomIndex = rl::utils::randomInt(0, fjson.as_array().size() - 1);
} while (fjson[randomIndex]["level_id"].is_null());

int levelId = fjson[randomIndex].get<int>("level_id");
int levelId = fjson[randomIndex].template get<int>("level_id");
getLevelInfo(levelId, level, error);
})
.expect([&](const auto& err) {
Expand Down

0 comments on commit 6b2b5e5

Please sign in to comment.