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
父節點 238f9add49
當前提交 31f0568a87
共有 2 個文件被更改,包括 4 次插入4 次删除

查看文件

@@ -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);