Use const
This commit is contained in:
parent
42c50f7cd5
commit
68cb9262b5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue