tree: Resolve clang-tidy, clazy, compiler warnings

Esse commit está contido em:
2023-03-12 16:41:31 +01:00
commit 566c4a8c58
14 arquivos alterados com 48 adições e 51 exclusões

Ver arquivo

@ -195,7 +195,7 @@ QString PreviewGeneratorPlainText::generateLineBasedPreviewText(QTextStream &in,
int totalWordsA = 0;
int differentWordsB = 0;
int totalWordsB = 0;
for(int count : a.wordCountMap.values())
for(int count : qAsConst(a.wordCountMap))
{
if(count > 0)
{
@ -203,7 +203,7 @@ QString PreviewGeneratorPlainText::generateLineBasedPreviewText(QTextStream &in,
}
totalWordsA += count;
}
for(int count : b.wordCountMap.values())
for(int count : qAsConst(b.wordCountMap))
{
if(count > 0)
{