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/core/systemmenu.cpp

    r6374 r6466  
    374374void SystemMenu::aboutToShowFollowMeMenu() 
    375375{ 
    376    ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     376   const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    377377   if (o == NULL) 
    378378     return; 
     
    654654void OwnerData::aboutToShowStatusMenu() 
    655655{ 
    656   ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
     656  const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
    657657  if (o == NULL) 
    658658    return; 
     
    675675void OwnerData::viewInfo() 
    676676{ 
    677   ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
     677  const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
    678678  if (o == NULL) 
    679679    return; 
     
    686686void OwnerData::viewHistory() 
    687687{ 
    688   ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
     688  const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
    689689  if (o == NULL) 
    690690    return;