mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 06:02:41 -04: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
1 changed files with 3 additions and 1 deletions
|
@ -3097,6 +3097,8 @@ bool p3ConnectMgr::loadList(std::list<RsItem *> load)
|
||||||
std::cerr << "p3ConnectMgr::loadList() Item Count: " << load.size() << std::endl;
|
std::cerr << "p3ConnectMgr::loadList() Item Count: " << load.size() << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
std::string ownId = getOwnId();
|
||||||
|
|
||||||
/* load the list of peers */
|
/* load the list of peers */
|
||||||
std::list<RsItem *>::iterator it;
|
std::list<RsItem *>::iterator it;
|
||||||
for(it = load.begin(); it != load.end(); 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) ;
|
RsConfigKeyValueSet *vitem = dynamic_cast<RsConfigKeyValueSet *>(*it) ;
|
||||||
if (pitem)
|
if (pitem)
|
||||||
{
|
{
|
||||||
if (pitem->pid == getOwnId())
|
if (pitem->pid == ownId)
|
||||||
{
|
{
|
||||||
#ifdef CONN_DEBUG
|
#ifdef CONN_DEBUG
|
||||||
std::cerr << "p3ConnectMgr::loadList() Own Config Item:" << std::endl;
|
std::cerr << "p3ConnectMgr::loadList() Own Config Item:" << std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue