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/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";