mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-20 23:10:39 -04:00
Removed usages of "std::istringstream" and "std::stringstream".
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5135 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5b23a0e112
commit
3718d6ecfa
7 changed files with 48 additions and 48 deletions
|
@ -50,7 +50,6 @@
|
|||
#include <errno.h>
|
||||
#include <cmath>
|
||||
|
||||
#include <sstream> // for std::istringstream
|
||||
#include <stdio.h>
|
||||
|
||||
#include "util/rsdebug.h"
|
||||
|
@ -605,12 +604,11 @@ bool p3turtle::loadList(std::list<RsItem*>& load)
|
|||
#ifdef CHAT_DEBUG
|
||||
std::cerr << "Loaded config default nick name for chat: " << kit->value << std::endl ;
|
||||
#endif
|
||||
std::istringstream is(kit->value) ;
|
||||
|
||||
int val ;
|
||||
is >> val ;
|
||||
|
||||
setMaxTRForwardRate(val) ;
|
||||
if (sscanf(kit->value.c_str(), "%d", &val) == 1)
|
||||
{
|
||||
setMaxTRForwardRate(val) ;
|
||||
}
|
||||
}
|
||||
|
||||
delete vitem ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue