Removed some std::ostringstream.

To be continued.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-04-14 22:38:24 +00:00
parent 60a68210d5
commit 83bd45caa4
22 changed files with 399 additions and 755 deletions

View file

@ -2173,10 +2173,10 @@ bool p3ChatService::acceptLobbyInvite(const ChatLobbyId& lobby_id)
std::string p3ChatService::makeVirtualPeerId(ChatLobbyId lobby_id)
{
std::ostringstream os ;
os << "Chat Lobby 0x" << std::hex << lobby_id << std::dec ;
std::string s;
rs_sprintf(s, "Chat Lobby 0x%llx", lobby_id);
return os.str() ;
return s ;
}

View file

@ -31,6 +31,8 @@
#include "pqi/p3linkmgr.h"
#include "util/rsrandom.h"
#include <sstream>
#include <openssl/sha.h>
/****

View file

@ -30,6 +30,8 @@
#include "util/rsdir.h"
#include <sstream>
std::string generateRandomShowId();
/****
@ -306,7 +308,7 @@ void p3PhotoService::publishPhotos()
std::string path = CacheSource::getCacheDir();
std::ostringstream out;
out << "photo-index-" << time(NULL) << ".pdx";
std::string tmpname = out.str();
std::string fname = path + "/" + tmpname;