src/core/*
src/urifilters/*
src/widgets/*
Details
- Reviewers
dfaure - Commits
- R241:7c0402ed9fd7: Compile without deprecated foreach
make && ctest
Diff Detail
- Repository
- R241 KIO
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/core/job.cpp | ||
---|---|---|
181–182 | You need a local const var to hold the result of the subjobs() method call. (repeats) | |
src/core/ksslcertificatemanager.cpp | ||
408–410 | userList would be a better variable name | |
src/core/ktcpsocket.cpp | ||
729 | or just iterate over ciphers, which is already const | |
src/core/scheduler.cpp | ||
214 | qAsConst not needed, this method is const | |
299–301 | I'm afraid that kill() ends up removing the job from waitingList. I would iterate over a copy to be safe. | |
379 | Did you try enabling this to make sure your ported code compiles? | |
src/widgets/dropjob.cpp | ||
270 | qAsConst | |
329 | qAsConst | |
361 | qAsConst | |
src/widgets/kdirmodel.cpp | ||
151 | qAsConst not needed, method is const | |
src/widgets/kfileitemdelegate.cpp | ||
233 | not needed, method is const and informationList is a member |
- Use more descriptive var names other than list2
- qAsConst isn't needed if the method is const and the container is a member var
src/core/job.cpp | ||
---|---|---|
181–182 | IIUC, subjobs() returns a const QList &, do we still need a local const var? | |
src/core/ktcpsocket.cpp | ||
729 | Yep. | |
src/core/scheduler.cpp | ||
214 | (... and m_runningJobs is a member var). | |
379 | Yes, I did. (I, like everyone else, hate to be embarrassed, so I always make sure it builds and passes unittests whenever I change anything except maybe comments :)). | |
src/widgets/dropjob.cpp | ||
270 | m_urls is declared const in DropJobPrivate: https://cgit.kde.org/kio.git/tree/src/widgets/dropjob.cpp#n142 | |
src/widgets/kfileitemdelegate.cpp | ||
233 | "member" is what made that concept finally click in my head; (I kept thinking calling begin() on a qt container won't call the const overload, but it will if the container is a member and the this pointer is a pointer to const). |