Commit b739ad38 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Bookmarks: Pass const value by references



Change-Id: If2467074478b1ee108ae46b39cdcc3b1a5c6f830
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 93c94d65
......@@ -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;
......
......@@ -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;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment