Explicit std

Removed headers were `using namespace std`.
So we have to be explicit everywhere.
This commit is contained in:
Matthieu Gautier
2022-06-22 17:51:08 +02:00
committed by Emmanuel Engelhart
parent 69931fb347
commit 71e2df7406
4 changed files with 18 additions and 18 deletions

View File

@ -130,7 +130,7 @@ kainjow::mustache::data buildPagination(
auto nbPages = lastPage + 1;
auto firstPageGenerated = currentPage > 4 ? currentPage-4 : 0;
auto lastPageGenerated = min(currentPage+4, lastPage);
auto lastPageGenerated = std::min(currentPage+4, lastPage);
if (nbPages != 1) {
if (firstPageGenerated!=0) {
@ -188,7 +188,7 @@ std::string SearchRenderer::renderTemplate(const std::string& tmpl_str)
results.set("count", kiwix::beautifyInteger(estimatedResultCount));
results.set("hasResults", estimatedResultCount != 0);
results.set("start", kiwix::beautifyInteger(resultStart));
results.set("end", kiwix::beautifyInteger(min(resultStart+pageLength-1, estimatedResultCount)));
results.set("end", kiwix::beautifyInteger(std::min(resultStart+pageLength-1, estimatedResultCount)));
// pagination
auto pagination = buildPagination(