Reverse loop variable avoidance
This commit is contained in:
@@ -227,8 +227,7 @@ APRView::Revert()
|
|||||||
bool
|
bool
|
||||||
APRView::IsDefaultable()
|
APRView::IsDefaultable()
|
||||||
{
|
{
|
||||||
int32 count = color_description_count();
|
for (int32 i = color_description_count() - 1; i >= 0; i--) {
|
||||||
for (int32 i = 0; i < count; i++) {
|
|
||||||
color_which which = get_color_description(i)->which;
|
color_which which = get_color_description(i)->which;
|
||||||
if (fCurrentSet.GetColor(which) != fDefaultSet.GetColor(which))
|
if (fCurrentSet.GetColor(which) != fDefaultSet.GetColor(which))
|
||||||
return true;
|
return true;
|
||||||
@@ -241,8 +240,7 @@ APRView::IsDefaultable()
|
|||||||
bool
|
bool
|
||||||
APRView::IsRevertable()
|
APRView::IsRevertable()
|
||||||
{
|
{
|
||||||
int32 count = color_description_count();
|
for (int32 i = color_description_count() - 1; i >= 0; i--) {
|
||||||
for (int32 i = 0; i < count; i++) {
|
|
||||||
color_which which = get_color_description(i)->which;
|
color_which which = get_color_description(i)->which;
|
||||||
if (fCurrentSet.GetColor(which) != fPrevSet.GetColor(which))
|
if (fCurrentSet.GetColor(which) != fPrevSet.GetColor(which))
|
||||||
return true;
|
return true;
|
||||||
@@ -274,8 +272,7 @@ APRView::_SetCurrentColor(rgb_color color)
|
|||||||
void
|
void
|
||||||
APRView::_UpdateAllColors()
|
APRView::_UpdateAllColors()
|
||||||
{
|
{
|
||||||
int32 count = color_description_count();
|
for (int32 i = color_description_count() - 1; i >= 0; i--) {
|
||||||
for (int32 i = 0; i < count; i++) {
|
|
||||||
color_which which = get_color_description(i)->which;
|
color_which which = get_color_description(i)->which;
|
||||||
rgb_color color = fCurrentSet.GetColor(which);
|
rgb_color color = fCurrentSet.GetColor(which);
|
||||||
set_ui_color(which, color);
|
set_ui_color(which, color);
|
||||||
|
|||||||
Reference in New Issue
Block a user