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:
thunder2 2010-08-15 12:48:09 +00:00
parent a911e1ac28
commit 8ef8174227

View File

@ -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;