PdfWorker: generatePreviews: take const ref to container with search results

这个提交包含在:
Albert S. 2019-04-29 23:01:11 +02:00
父节点 fe57a8d41c
当前提交 75d7aed22d
共有 2 个文件被更改,包括 3 次插入3 次删除

查看文件

@ -74,11 +74,11 @@ struct Renderer
QFuture<PdfPreview> PdfWorker::generatePreviews(QVector<SearchResult> paths, double scalefactor)
QFuture<PdfPreview> PdfWorker::generatePreviews(const QVector<SearchResult> paths, double scalefactor)
{
QVector<PdfPreview> previews;
for(SearchResult &sr : paths)
for(const SearchResult &sr : paths)
{
for(int page : sr.pages)
{

查看文件

@ -17,7 +17,7 @@ class PdfWorker : public QObject
{
Q_OBJECT
public:
QFuture<PdfPreview> generatePreviews(QVector<SearchResult> paths, double scalefactor);
QFuture<PdfPreview> generatePreviews(const QVector<SearchResult> paths, double scalefactor);
};
#endif // PDFWORKER_H