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/mainwin.cpp

    r6463 r6466  
    129129 
    130130  myCaption = "Licq"; 
    131   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     131  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    132132  if (o != NULL) 
    133133  { 
     
    615615 
    616616        myCaption = "Licq (|)"; 
    617         ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
     617        const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
    618618        if (o != NULL) 
    619619        { 
     
    817817  IconManager* iconman = IconManager::instance(); 
    818818 
    819   ICQOwner* o = gUserManager.FetchOwner(nPPID, LOCK_R); 
     819  const ICQOwner* o = gUserManager.FetchOwner(nPPID, LOCK_R); 
    820820  if (o != NULL) 
    821821  { 
     
    908908{ 
    909909  //TODO iterate all owners that support fetching away message 
    910   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     910  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    911911 
    912912  if (o == NULL)