Changeset 6235 for trunk/qt-gui

Show
Ignore:
Timestamp:
06/05/08 03:25:29 (6 months ago)
Author:
flynd
Message:

Silence warnings from gcc 4.3

Location:
trunk/qt-gui/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/chatdlg.cpp

    r5328 r6235  
    578578                         iter->u->ColorBg()[2]); 
    579579      QFont f(iter->w->font()); 
    580       f.setFixedPitch(iter->u->FontStyle() & 0x0F == STYLE_FIXEDxPITCH); 
     580      f.setFixedPitch(iter->u->FontStyle() && 0x0F == STYLE_FIXEDxPITCH); 
    581581 
    582582      switch (iter->u->FontStyle() & 0xF0) 
     
    847847        { 
    848848          QFont f(GetWindow(u)->font()); 
    849           f.setFixedPitch(u->FontStyle() & 0x0F == STYLE_FIXEDxPITCH); 
     849          f.setFixedPitch(u->FontStyle() && 0x0F == STYLE_FIXEDxPITCH); 
    850850 
    851851          switch (u->FontStyle() & 0xF0) 
  • trunk/qt-gui/src/chatjoin.cpp

    r5473 r6235  
    123123  for (iter = originalChats.begin(); 
    124124       iter != originalChats.end() && n < lstChats->currentItem(); 
    125        iter++, n++); 
     125       iter++, n++) 
     126    ; 
    126127 
    127128  ChatDlg *cd = *iter; 
  • trunk/qt-gui/src/mainwin.cpp

    r6201 r6235  
    237237  if((unsigned short) Status != ICQ_STATUS_OFFLINE && (Status & ICQ_STATUS_FxPRIVATE) 
    238238     && !gMainWindow->m_bShowExtendedIcons) 
     239  { 
    239240     if (nPPID == MSN_PPID) 
    240241       return gMainWindow->pmMSNPrivate; 
    241242     else 
    242243       return gMainWindow->pmPrivate; 
    243         
     244  } 
     245 
    244246  if ((unsigned short) Status == ICQ_STATUS_OFFLINE) 
     247  { 
    245248    if (nPPID == MSN_PPID) 
    246249      return gMainWindow->pmMSNOffline; 
     
    249252    else 
    250253      return gMainWindow->pmOffline; 
     254  } 
    251255 
    252256  if (Status & ICQ_STATUS_DND) 
     257  { 
    253258    if (nPPID == MSN_PPID) 
    254259      return gMainWindow->pmMSNOccupied; 
     
    257262    else 
    258263      return gMainWindow->pmDnd; 
     264  } 
    259265 
    260266  if (Status & ICQ_STATUS_OCCUPIED) 
     267  { 
    261268    if (nPPID == MSN_PPID) 
    262269      return gMainWindow->pmMSNOccupied; 
     
    265272    else 
    266273      return gMainWindow->pmOccupied; 
     274  } 
    267275 
    268276  if (Status & ICQ_STATUS_NA) 
     277  { 
    269278    if (nPPID == MSN_PPID) 
    270279      return gMainWindow->pmMSNAway; 
     
    273282    else 
    274283      return gMainWindow->pmNa; 
     284  } 
    275285 
    276286  if (Status & ICQ_STATUS_AWAY) 
     287  { 
    277288    if (nPPID == MSN_PPID) 
    278289      return gMainWindow->pmMSNAway; 
     
    281292    else 
    282293      return gMainWindow->pmAway; 
     294  } 
    283295 
    284296  if (Status & ICQ_STATUS_FREEFORCHAT) return gMainWindow->pmFFC; 
     
    10191031    // btnSystem 
    10201032    if (btnSystem != NULL) 
     1033    { 
    10211034      if ((skin->btnSys.rect.x1 == skin->btnSys.rect.x2) && (skin->btnSys.rect.y1 == skin->btnSys.rect.y2)) 
    10221035        btnSystem->hide(); 
    10231036      else 
    10241037        btnSystem->show(); 
     1038    } 
    10251039    // lblStatus 
    10261040    if (lblStatus != NULL) 
     1041    { 
    10271042      if ((skin->lblStatus.rect.x1 == skin->lblStatus.rect.x2) && (skin->lblStatus.rect.y1 == skin->lblStatus.rect.y2)) 
    10281043        lblStatus->hide(); 
    10291044      else 
    10301045        lblStatus->show(); 
     1046    } 
    10311047    // lblMsg 
    10321048    if (lblMsg != NULL) 
     1049    { 
    10331050      if ((skin->lblMsg.rect.x1 == skin->lblMsg.rect.x2) && (skin->lblMsg.rect.y1 == skin->lblMsg.rect.y2)) 
    10341051        lblMsg->hide(); 
    10351052      else 
    10361053        lblMsg->show(); 
     1054    } 
    10371055    // cmbGroups 
    10381056    if (cmbUserGroups != NULL) 
     1057    { 
    10391058      if ((skin->cmbGroups.rect.x1 == skin->cmbGroups.rect.x2) && (skin->cmbGroups.rect.y1 == skin->cmbGroups.rect.y2)) 
    10401059        cmbUserGroups->hide(); 
    10411060      else 
    10421061        cmbUserGroups->show(); 
     1062    } 
    10431063    if (menu != NULL) menu->show(); 
    10441064    updateUserWin(); 
     
    11511171  // cmbUserGroups 
    11521172  if (cmbUserGroups != NULL) 
     1173  { 
    11531174    if ((skin->cmbGroups.rect.x1 == skin->cmbGroups.rect.x2) && (skin->cmbGroups.rect.y1 == skin->cmbGroups.rect.y2)) 
    11541175      cmbUserGroups->hide(); 
    11551176    else 
    11561177      cmbUserGroups->setGeometry(skin->borderToRect(&skin->cmbGroups, this)); 
     1178  } 
    11571179  // lblMsg 
    11581180  if (lblMsg != NULL) 
     1181  { 
    11591182    if ((skin->lblMsg.rect.x1 == skin->lblMsg.rect.x2) && (skin->lblMsg.rect.y1 == skin->lblMsg.rect.y2)) 
    11601183      lblMsg->hide(); 
    11611184    else 
    11621185      lblMsg->setGeometry(skin->borderToRect(&skin->lblMsg, this)); 
     1186  } 
    11631187  // lblStatus 
    11641188  if (lblStatus != NULL) 
     1189  { 
    11651190    if ((skin->lblStatus.rect.x1 == skin->lblStatus.rect.x2) && (skin->lblStatus.rect.y1 == skin->lblStatus.rect.y2)) 
    11661191      lblStatus->hide(); 
    11671192    else 
    11681193      lblStatus->setGeometry(skin->borderToRect(&skin->lblStatus, this)); 
     1194  } 
    11691195  // btnSystem 
    11701196  if (btnSystem != NULL) 
     1197  { 
    11711198    if ((skin->btnSys.rect.x1 == skin->btnSys.rect.x2) && (skin->btnSys.rect.y1 == skin->btnSys.rect.y2)) 
    11721199      btnSystem->hide(); 
    11731200    else 
    11741201      btnSystem->setGeometry(skin->borderToRect(&skin->btnSys, this)); 
     1202  } 
    11751203} 
    11761204