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.

Location:
trunk/qt4-gui/src/widgets
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/widgets/historyview.cpp

    r6463 r6466  
    417417  if (event->Direction() != D_RECEIVER) 
    418418  { 
    419     ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
     419    const ICQOwner* o = gUserManager.FetchOwner(myPpid, LOCK_R); 
    420420    if (o != NULL) 
    421421    { 
  • trunk/qt4-gui/src/widgets/protocombobox.cpp

    r6374 r6466  
    4444  QString id; 
    4545  unsigned long ppid; 
    46   ICQOwner* o; 
    4746 
    4847  FOR_EACH_PROTO_PLUGIN_START(gLicqDaemon) 
    4948  { 
    5049    ppid = (*_ppit)->PPID(); 
    51     o = gUserManager.FetchOwner(ppid, LOCK_R); 
     50    const ICQOwner* o = gUserManager.FetchOwner(ppid, LOCK_R); 
    5251    if (o == NULL) 
    5352      id = "0";