mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
Removed some std::ostringstream.
To be continued. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5104 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
83bd45caa4
commit
470951d664
10 changed files with 136 additions and 191 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "extaddrfinder.h"
|
||||
|
||||
#include "pqi/pqinetwork.h"
|
||||
#include "util/rsstring.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <netdb.h>
|
||||
|
@ -8,7 +9,6 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
@ -43,9 +43,9 @@ static std::string scan_ip(const std::string& text)
|
|||
|
||||
if(a < 256 && b<256 && c<256 && d<256)
|
||||
{
|
||||
std::ostringstream o ;
|
||||
o << a << "." << b << "." << c << "." << d ;
|
||||
return o.str();
|
||||
std::string s ;
|
||||
rs_sprintf(s, "%u.%u.%u.%u", a, b, c, d) ;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
return "" ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue