D22322: Store crash report automatically if shutting down
Harald Sitter
noreply at phabricator.kde.org
Thu Jul 11 10:08:59 BST 2019
sitter accepted this revision.
sitter added a comment.
some style fixes then ship it plz 👍
INLINE COMMENTS
> drkonqi.cpp:214
> +
> + void removeOldFilesIn(QDir& dir) {
> + auto fileList = dir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot,
& goes to the right of the space; curly brace goes on next line for multi-line function bodies
> drkonqi.cpp:217
> + QDir::SortFlag::Time | QDir::Reversed);
> + if (fileList.size() >= 10) {
> + int filesToRemove = fileList.size() - 9;
This doesn't necessarily need changing, but I want to point out that this and the following two lines are convoluted, they are simply `for (int i = fileList.size(); i <= 10; --i) {}` if I am reading this right.
> drkonqi.cpp:219
> + int filesToRemove = fileList.size() - 9;
> + while(filesToRemove--) {
> + auto currentFile = fileList.takeFirst();
space between while and brace
> drkonqi.cpp:232
> + QDir dir(dirname);
> + if(!dir.mkpath(dirname)) {
> + qApp->quit();
space between if and brace
REPOSITORY
R871 DrKonqi
BRANCH
storeGuiless
REVISION DETAIL
https://phabricator.kde.org/D22322
To: tcanabrava, sitter, davidedmundson
Cc: sitter, davidedmundson, plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190711/74067ee9/attachment.html>
More information about the Plasma-devel
mailing list