]> git.cworth.org Git - apitrace/blobdiff - gui/apicalldelegate.cpp
Removed unused copy of thumbnails.
[apitrace] / gui / apicalldelegate.cpp
index 221462e66b9996fdcff6b0c1f21a2d2b96753df5..c68717580ddc6e5e5d94f3b95eb9fd27b8d6cf45 100644 (file)
@@ -37,7 +37,7 @@ void ApiCallDelegate::paint(QPainter *painter,
         // draw thumbnail of frame
         if(event->type() == ApiTraceEvent::Frame) {
             ApiTraceFrame *frame = static_cast<ApiTraceFrame*>(event);
-            QImage thumbnail = frame->thumbnail();
+            const QImage & thumbnail = frame->thumbnail();
             if (!thumbnail.isNull()) {
                 painter->drawImage(option.rect.topLeft() + offset, thumbnail);
                 offset += QPoint(option.rect.height() + 16, 0);