1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-04-10 04:15:43 +02:00

Enable bugprone-too-small-loop-variable clang-tidy check

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-08-18 21:54:20 +02:00 committed by Kevin Ottens (Rebase PR Action)
parent 80cc196f6f
commit 0909f00a8b
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Checks: '-*,
bugprone-forward-declaration-namespace,
bugprone-macro-parentheses,
bugprone-narrowing-conversions,
bugprone-too-small-loop-variable,
cppcoreguidelines-init-variables,
misc-*,
-misc-non-private-member-variables-in-classes,

View File

@ -22,7 +22,7 @@ void addBunchOfFiles(int depth, const QString &path, FileModifier &fi) {
}
if (depth >= maxDepth)
return;
for (char dirNum = 1; dirNum <= dirPerDir; ++dirNum) {
for (int dirNum = 1; dirNum <= dirPerDir; ++dirNum) {
QString name = QStringLiteral("dir") + QString::number(dirNum);
QString subPath = path.isEmpty() ? name : path + "/" + name;
fi.mkdir(subPath);