summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-04-23 12:20:13 (UTC)
committer mickeyl <mickeyl>2004-04-23 12:20:13 (UTC)
commit33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824 (patch) (side-by-side diff)
treec05204f0ed7f02a522ded2aaf9121e1976612f15
parent85bfee8e542805ff7df67d9786bb291f7d2b34f3 (diff)
downloadopie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.zip
opie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.tar.gz
opie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.tar.bz2
gcc3.4 fixlet
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/appearance2/appearance.cpp14
1 files changed, 7 insertions, 7 deletions
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<QColorGroup::ColorRole>( role ) );
if ( col. isValid ( ))
{
- labels [cnt] = item-> label ( role );
- colors [cnt] = col;
+ labels[cnt] = item->label( static_cast<QColorGroup::ColorRole>( 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<QColorGroup::ColorRole>( role ) ).isValid() )
{
- citem-> setColor ( role, colors [cnt] );
+ citem->setColor( static_cast<QColorGroup::ColorRole>( role ), colors[cnt] );
cnt++;
}
}