Commit 0f759ed5 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

CMake: Pass some values by reference

Change-Id: Ie232a4312a783f41cb719e6a69cd2e3006caf84c
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent a5334956
......@@ -638,7 +638,7 @@ void CMakeRunPage::runCMake()
}
}
static QColor mix_colors(QColor a, QColor b)
static QColor mix_colors(const QColor &a, const QColor &b)
{
return QColor((a.red() + 2 * b.red()) / 3, (a.green() + 2 * b.green()) / 3,
(a.blue() + 2* b.blue()) / 3, (a.alpha() + 2 * b.alpha()) / 3);
......
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