summaryrefslogtreecommitdiff
path: root/gui/apicalldelegate.cpp
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2012-03-24 07:44:43 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2012-03-24 07:44:43 +0000
commit8759ae0a429088d4d1e54b6c0c205e8058150245 (patch)
treeddad1a8ea1d61542f4976fc399b8d3dbf085f036 /gui/apicalldelegate.cpp
parent6bfa32f560b5d299ad9cdeb6bbbabf6497750c9f (diff)
Avoid QImage object copies by using references.
Diffstat (limited to 'gui/apicalldelegate.cpp')
-rw-r--r--gui/apicalldelegate.cpp2
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);