From b190a54c4046dd230f5ae19ad4fa86cf3d1dc4fc Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Thu, 22 Nov 2012 14:20:57 +0100 Subject: [PATCH] activitymonitor: remove B_MAX_CPU_COUNT reference It has no use, since we don't know its value and the list of colors might be longer (for example, for ARM currently B_MAX_CPU_COUNT is only 1). The modula operator later on makes sure we keep within the bounds of the kColors array anyway. --- src/apps/activitymonitor/DataSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/activitymonitor/DataSource.cpp b/src/apps/activitymonitor/DataSource.cpp index 644bf69988c..43ea62d233a 100644 --- a/src/apps/activitymonitor/DataSource.cpp +++ b/src/apps/activitymonitor/DataSource.cpp @@ -949,7 +949,7 @@ CPUUsageDataSource::_SetCPU(int32 cpu) fLabel << " " << B_TRANSLATE("usage"); - const rgb_color kColors[B_MAX_CPU_COUNT] = { + const rgb_color kColors[] = { // TODO: find some better defaults... {200, 0, 200}, {0, 200, 200},