Skip to content

Commit 9cb1321

Browse files
nephrosnephros
authored andcommitted
Hotcache: Use foreach again.
1 parent 969a763 commit 9cb1321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/patchmanager-daemon/patchmanagerobject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3058,13 +3058,13 @@ void PatchManagerFilter::setup()
30583058
setMaxCost(HOTCACHE_COST_MAX);
30593059

30603060
// use a cost of 1 here so they have less chance to be evicted
3061-
for(const QString &entry : etcList) {
3061+
foreach(const QString &entry, etcList) {
30623062
if (QFileInfo::exists(entry))
30633063
insert(entry, new QObject(), HOTCACHE_COST_STRONG);
30643064
}
30653065
}
30663066
// they may be wrong, so use a higher cost than default
3067-
for( const QString &entry : libList) {
3067+
foreach(const QString &entry, libList) {
30683068
QString libentry(entry);
30693069
if (Q_PROCESSOR_WORDSIZE == 4) { // 32 bit
30703070
libentry.replace("lib64", "lib");

0 commit comments

Comments
 (0)