Use const

This commit is contained in:
Martchus 2018-09-29 11:40:03 +02:00
parent 42c50f7cd5
commit 68cb9262b5
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ bool Repository::hasOutdatedPackages()
if(maxPackageAge().isInfinity()) {
return false;
}
auto now = DateTime::gmtNow();
const auto now = DateTime::gmtNow();
for(const auto &pkgEntry : m_packages) {
if((now - pkgEntry.second->timeStamp()) > maxPackageAge()) {
return true;