diff --git a/src/plugins/bookmarks/bookmarkmanager.cpp b/src/plugins/bookmarks/bookmarkmanager.cpp
index 2e779bc400012d9b513988a88b90855f54fa393c..abbcb37e21c3ffd68c92a0cbca8e41f623b14eb0 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 61ea756009eaa6793bfcde9663a4ef4fa6eedd1e..3301b74c3d3c37ce4ff82526a1a7e1c09cacb462 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;
 };