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

    r6463 r6466  
    687687  } 
    688688 
    689   ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
     689  const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
    690690  if (o == NULL) 
    691691    return; 
     
    11651165  FOR_EACH_PROTO_PLUGIN_START(myLicqDaemon) 
    11661166  { 
    1167     ICQOwner* o = gUserManager.FetchOwner((*_ppit)->PPID(), LOCK_R); 
     1167    const ICQOwner* o = gUserManager.FetchOwner((*_ppit)->PPID(), LOCK_R); 
    11681168    if (o == NULL) 
    11691169      continue; 
     
    11911191    FOR_EACH_PROTO_PLUGIN_START(myLicqDaemon) 
    11921192    { 
    1193       ICQOwner* o = gUserManager.FetchOwner((*_ppit)->PPID(), LOCK_R); 
     1193      const ICQOwner* o = gUserManager.FetchOwner((*_ppit)->PPID(), LOCK_R); 
    11941194      if (o == NULL) 
    11951195        continue; 
     
    12731273 
    12741274  // Do system messages first 
    1275   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     1275  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    12761276  unsigned short numMsg = 0; 
    12771277  if (o != NULL) 
     
    14271427        unsigned short popCheck = 99; 
    14281428 
    1429         ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
     1429        const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
    14301430        if (o != NULL) 
    14311431        { 
     
    16511651    // Fetch current status 
    16521652    unsigned short status = ICQ_STATUS_OFFLINE; 
    1653     ICQOwner* o = gUserManager.FetchOwner(nPPID, LOCK_R); 
     1653    const ICQOwner* o = gUserManager.FetchOwner(nPPID, LOCK_R); 
    16541654    if (o != NULL) 
    16551655    {