Follow hint by Marcus and make colors static *const*.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42672 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -62,8 +62,8 @@ void
|
|||||||
LanguageListItem::DrawItemWithTextOffset(BView* owner, BRect frame,
|
LanguageListItem::DrawItemWithTextOffset(BView* owner, BRect frame,
|
||||||
bool complete, float textOffset)
|
bool complete, float textOffset)
|
||||||
{
|
{
|
||||||
static rgb_color kHighlight = {140, 140, 140, 0};
|
static const rgb_color kHighlight = {140, 140, 140, 0};
|
||||||
static rgb_color kBlack = {0, 0, 0, 0};
|
static const rgb_color kBlack = {0, 0, 0, 0};
|
||||||
|
|
||||||
if (IsSelected() || complete) {
|
if (IsSelected() || complete) {
|
||||||
rgb_color color;
|
rgb_color color;
|
||||||
|
|||||||
Reference in New Issue
Block a user