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/apitracecall.h | |
parent | 6bfa32f560b5d299ad9cdeb6bbbabf6497750c9f (diff) |
Avoid QImage object copies by using references.
Diffstat (limited to 'gui/apitracecall.h')
-rw-r--r-- | gui/apitracecall.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/apitracecall.h b/gui/apitracecall.h index 8d0e6db7..945ab0cb 100644 --- a/gui/apitracecall.h +++ b/gui/apitracecall.h @@ -336,8 +336,8 @@ public: void setLastCallIndex(unsigned index); unsigned lastCallIndex() const; - void setThumbnail(QImage thumbnail); - QImage thumbnail() const; + void setThumbnail(const QImage & thumbnail); + const QImage & thumbnail() const; private: ApiTrace *m_parentTrace; |