diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-05-19 18:26:55 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-05-21 13:33:29 +0200 |
commit | b739ad38d453689ceea95bf6dbf653829c07012b (patch) | |
tree | bc0fba02b0669b6d2f0ac4cbcc86cccfc704d459 /src/plugins/bookmarks | |
parent | 93c94d65a8307ce7b7f743666f7683c232b68589 (diff) | |
download | qt-creator-b739ad38d453689ceea95bf6dbf653829c07012b.tar.gz |
Bookmarks: Pass const value by references
Change-Id: If2467074478b1ee108ae46b39cdcc3b1a5c6f830
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/bookmarks')
-rw-r--r-- | src/plugins/bookmarks/bookmarkmanager.cpp | 2 | ||||
-rw-r--r-- | src/plugins/bookmarks/bookmarkmanager.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/bookmarks/bookmarkmanager.cpp b/src/plugins/bookmarks/bookmarkmanager.cpp index 2e779bc400..abbcb37e21 100644 --- a/src/plugins/bookmarks/bookmarkmanager.cpp +++ b/src/plugins/bookmarks/bookmarkmanager.cpp @@ -86,7 +86,7 @@ QSize BookmarkDelegate::sizeHint(const QStyleOptionViewItem &option, const QMode return s; } -void BookmarkDelegate::generateGradientPixmap(int width, int height, QColor color, bool selected) const +void BookmarkDelegate::generateGradientPixmap(int width, int height, const QColor &color, bool selected) const { QColor c = color; diff --git a/src/plugins/bookmarks/bookmarkmanager.h b/src/plugins/bookmarks/bookmarkmanager.h index 61ea756009..3301b74c3d 100644 --- a/src/plugins/bookmarks/bookmarkmanager.h +++ b/src/plugins/bookmarks/bookmarkmanager.h @@ -190,7 +190,7 @@ public: QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; private: - void generateGradientPixmap(int width, int height, QColor color, bool selected) const; + void generateGradientPixmap(int width, int height, const QColor &color, bool selected) const; mutable QPixmap *m_normalPixmap; mutable QPixmap *m_selectedPixmap; }; |