CMake: Pass some values by reference

Change-Id: Ie232a4312a783f41cb719e6a69cd2e3006caf84c
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Orgad Shaneh
2014-05-19 23:31:53 +03:00
committed by Orgad Shaneh
parent a5334956a8
commit 0f759ed5e3

View File

@@ -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);