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

This commit is contained in:
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