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/dockicons/dockicon.cpp

    r6374 r6466  
    7272{ 
    7373  // First check for ICQ/AIM owner presence 
    74   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     74  const ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    7575 
    7676  // Take any existent one otherwise 
    7777  if (o == NULL && gUserManager.NumOwners() != 0) 
    7878  { 
    79     OwnerList* ol = gUserManager.LockOwnerList(LOCK_R); 
     79    const OwnerList* ol = gUserManager.LockOwnerList(LOCK_R); 
    8080    o = ol->front(); 
    8181    o->Lock(LOCK_R);