~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/djvumodel.cpp

  • Committer: Adam Reichold
  • Date: 2017-04-19 21:01:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2043.
  • Revision ID: adam.reichold@t-online.de-20170419210125-x3ubrcjkdmjzkn5g
Fix usage of QList in the bookmark and search models and various small performance issues reported by the clazy tool using the checks of "level0,level1,level2,no-missing-qobject-macro,no-qstring-allocations,no-copyable-polymorphic,no-ctor-missing-parent-argument,no-reserve-candidates".

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
    }
119
119
}
120
120
 
121
 
QPainterPath loadLinkBoundary(const QString& type, miniexp_t boundaryExp, const QSizeF& size)
 
121
QPainterPath loadLinkBoundary(const QString& type, miniexp_t boundaryExp, QSizeF size)
122
122
{
123
123
    QPainterPath boundary;
124
124
 
215
215
    }
216
216
}
217
217
 
218
 
QList< Link* > loadLinks(miniexp_t linkExp, const QSizeF& size, int index, const QHash< QString, int >& pageByName)
 
218
QList< Link* > loadLinks(miniexp_t linkExp, QSizeF size, int index, const QHash< QString, int >& pageByName)
219
219
{
220
220
    QList< Link* > links;
221
221
 
257
257
    return links;
258
258
}
259
259
 
260
 
QString loadText(miniexp_t textExp, const QSizeF& size, const QRectF& rect)
 
260
QString loadText(miniexp_t textExp, QSizeF size, const QRectF& rect)
261
261
{
262
262
    if(miniexp_length(textExp) < 6 && !miniexp_symbolp(miniexp_car(textExp)))
263
263
    {
297
297
    return QString();
298
298
}
299
299
 
300
 
QList< QRectF > findText(miniexp_t pageTextExp, const QSizeF& size, const QTransform& transform, const QStringList& words, bool matchCase, bool wholeWords)
 
300
QList< QRectF > findText(miniexp_t pageTextExp, QSizeF size, const QTransform& transform, const QStringList& words, bool matchCase, bool wholeWords)
301
301
{
302
302
    if(words.isEmpty())
303
303
    {
514
514
    return 72.0 / m_resolution * m_size;
515
515
}
516
516
 
517
 
QImage DjVuPage::render(qreal horizontalResolution, qreal verticalResolution, Rotation rotation, const QRect& boundingRect) const
 
517
QImage DjVuPage::render(qreal horizontalResolution, qreal verticalResolution, Rotation rotation, QRect boundingRect) const
518
518
{
519
519
    LOCK_PAGE
520
520