From 33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Fri, 23 Apr 2004 12:20:13 +0000 Subject: gcc3.4 fixlet --- diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp index 6b9fe4d..f918767 100644 --- a/noncore/settings/appearance2/appearance.cpp +++ b/noncore/settings/appearance2/appearance.cpp @@ -677,14 +677,14 @@ void Appearance::editSchemeClicked ( ) QString labels [QColorGroup::NColorRoles]; QColor colors [QColorGroup::NColorRoles]; - for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) + for ( int role = 0; role < (int) QColorGroup::NColorRoles; ++role ) { - QColor col = item-> color ( role ); + QColor col = item->color( static_cast( role ) ); if ( col. isValid ( )) { - labels [cnt] = item-> label ( role ); - colors [cnt] = col; + labels[cnt] = item->label( static_cast( role ) ); + colors[cnt] = col; cnt++; } @@ -696,11 +696,11 @@ void Appearance::editSchemeClicked ( ) ColorListItem *citem = (ColorListItem *) m_color_list-> item ( 0 ); cnt = 0; - for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) + for ( int role = 0; role < (int) QColorGroup::NColorRoles; ++role ) { - if ( item-> color ( role ). isValid ( )) + if ( item->color( static_cast( role ) ).isValid() ) { - citem-> setColor ( role, colors [cnt] ); + citem->setColor( static_cast( role ), colors[cnt] ); cnt++; } } -- cgit v0.9.0.2