Show
Ignore:
Timestamp:
07/25/08 04:15:48 (4 months ago)
Author:
flynd
Message:

Use const pointer for owner objects that are fetched only for read access.

Location:
trunk/qt4-gui/src/dialogs
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/dialogs/awaymsgdlg.cpp

    r6374 r6466  
    166166  a->setData(999); 
    167167 
    168   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     168  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    169169  if (o == NULL) 
    170170    return; 
  • trunk/qt4-gui/src/dialogs/editcategorydlg.cpp

    r6374 r6466  
    125125void EditCategoryDlg::ok() 
    126126{ 
    127   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     127  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    128128  if (o != NULL) 
    129129  { 
  • trunk/qt4-gui/src/dialogs/historydlg.cpp

    r6463 r6466  
    236236  gUserManager.DropUser(u); 
    237237 
    238   ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
     238  const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
    239239  if (o != NULL) 
    240240  { 
  • trunk/qt4-gui/src/dialogs/ownereditdlg.cpp

    r6374 r6466  
    9191  if (ppid != 0) 
    9292  { 
    93     ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
     93    const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
    9494    if (o != NULL) 
    9595    { 
  • trunk/qt4-gui/src/dialogs/phonedlg.cpp

    r6374 r6466  
    5353  setModal(true); 
    5454 
    55   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     55  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    5656  if (o == NULL) 
    5757  { 
     
    236236  } 
    237237 
    238   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     238  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    239239  if (o == NULL) 
    240240  { 
  • trunk/qt4-gui/src/dialogs/randomchatdlg.cpp

    r6374 r6466  
    181181  myGroupsList->addItem(tr("Seeking Men")); 
    182182 
    183   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    184   if (o == 0) 
     183  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     184  if (o == NULL) 
    185185  { 
    186186    close(); 
  • trunk/qt4-gui/src/dialogs/securitydlg.cpp

    r6374 r6466  
    5151  setWindowTitle(title); 
    5252 
    53   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     53  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    5454  if (o == NULL) 
    5555  { 
     
    9999void SecurityDlg::ok() 
    100100{ 
    101   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     101  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    102102 
    103103  if (o == NULL) 
  • trunk/qt4-gui/src/dialogs/userinfodlg.cpp

    r6463 r6466  
    19351935#endif 
    19361936 
    1937   ICQOwner* o = gUserManager.FetchOwner(m_nPPID, LOCK_R); 
     1937  const ICQOwner* o = gUserManager.FetchOwner(m_nPPID, LOCK_R); 
    19381938  if(o == NULL)  return; 
    19391939  unsigned short status = o->Status(); 
     
    20292029      currentTab != PictureInfo) 
    20302030  { 
    2031     ICQOwner* o = gUserManager.FetchOwner(m_nPPID, LOCK_R); 
     2031    const ICQOwner* o = gUserManager.FetchOwner(m_nPPID, LOCK_R); 
    20322032    if(o == NULL)  return; 
    20332033    unsigned short status = o->Status(); 
  • trunk/qt4-gui/src/dialogs/userselectdlg.cpp

    r6374 r6466  
    8989 
    9090  // For now, just have one owner 
    91   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     91  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    9292  if (o == 0) 
    9393  {