mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-25 09:11:06 -04:00
remove boost call
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2030 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3863b8c173
commit
37cf2e98a2
3 changed files with 14 additions and 9 deletions
|
@ -29,7 +29,6 @@
|
|||
#include "pqi/authssl.h"
|
||||
#include "pqi/authgpg.h"
|
||||
#include <rsiface/rsinit.h>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
@ -963,7 +962,10 @@ bool p3Peers::loadDetailsFromStringCert(std::string certstr, RsPeerDetails &pd)
|
|||
if (parsePosition != std::string::npos) {
|
||||
std::string local_port = subCert.substr(0, parsePosition);
|
||||
std::cerr << "Local port : " << local_port << std::endl;
|
||||
pd.localPort = (boost::lexical_cast<uint16_t>(local_port));
|
||||
std::istringstream instream(local_port);
|
||||
uint16_t local_port_int;
|
||||
instream >> local_port_int;
|
||||
pd.localPort = (local_port_int);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -986,7 +988,10 @@ bool p3Peers::loadDetailsFromStringCert(std::string certstr, RsPeerDetails &pd)
|
|||
if (parsePosition != std::string::npos) {
|
||||
std::string ext_port = subCert.substr(0, parsePosition);
|
||||
std::cerr << "Ext port : " << ext_port << std::endl;
|
||||
pd.extPort = (boost::lexical_cast<uint16_t>(ext_port));
|
||||
std::istringstream instream(ext_port);
|
||||
uint16_t ext_port_int;
|
||||
instream >> ext_port_int;
|
||||
pd.extPort = (ext_port_int);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue