mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
Optimized usage of getOwnId in p3ConnectMgr::loadList
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3371 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a911e1ac28
commit
8ef8174227
@ -3097,6 +3097,8 @@ bool p3ConnectMgr::loadList(std::list<RsItem *> load)
|
||||
std::cerr << "p3ConnectMgr::loadList() Item Count: " << load.size() << std::endl;
|
||||
#endif
|
||||
|
||||
std::string ownId = getOwnId();
|
||||
|
||||
/* load the list of peers */
|
||||
std::list<RsItem *>::iterator it;
|
||||
for(it = load.begin(); it != load.end(); it++)
|
||||
@ -3105,7 +3107,7 @@ bool p3ConnectMgr::loadList(std::list<RsItem *> load)
|
||||
RsConfigKeyValueSet *vitem = dynamic_cast<RsConfigKeyValueSet *>(*it) ;
|
||||
if (pitem)
|
||||
{
|
||||
if (pitem->pid == getOwnId())
|
||||
if (pitem->pid == ownId)
|
||||
{
|
||||
#ifdef CONN_DEBUG
|
||||
std::cerr << "p3ConnectMgr::loadList() Own Config Item:" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user