diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2012-03-24 07:44:43 +0000 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2012-03-24 07:44:43 +0000 |
commit | 8759ae0a429088d4d1e54b6c0c205e8058150245 (patch) | |
tree | ddad1a8ea1d61542f4976fc399b8d3dbf085f036 /gui/apicalldelegate.cpp | |
parent | 6bfa32f560b5d299ad9cdeb6bbbabf6497750c9f (diff) |
Avoid QImage object copies by using references.
Diffstat (limited to 'gui/apicalldelegate.cpp')
-rw-r--r-- | gui/apicalldelegate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/apicalldelegate.cpp b/gui/apicalldelegate.cpp index 221462e6..c6871758 100644 --- a/gui/apicalldelegate.cpp +++ b/gui/apicalldelegate.cpp @@ -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); |