shared: LimitQueue: Change limit type to int

More consistent with "QQueue::size()" and silences warning
This commit is contained in:
2022-08-28 13:09:51 +02:00
parent 238f9add49
commit 31f0568a87
2 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ struct Snippet
QString PreviewGeneratorPlainText::generateLineBasedPreviewText(QTextStream &in, RenderConfig config, QString fileName)
{
QVector<Snippet> snippets;
const unsigned int contextLinesCount = 2;
const int contextLinesCount = 2;
LimitQueue<QString> queue(contextLinesCount);
QString currentLine;
currentLine.reserve(512);