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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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();