forked from qt-creator/qt-creator
CMake: Pass some values by reference
Change-Id: Ie232a4312a783f41cb719e6a69cd2e3006caf84c Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
a5334956a8
commit
0f759ed5e3
@@ -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,
|
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);
|
(a.blue() + 2* b.blue()) / 3, (a.alpha() + 2 * b.alpha()) / 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user