mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
Fixed cross-platform bugs.
(1) std::map<> doesn't support .at() on OSX or Windows. (use [] or find()) (2) u_int32_t is invalid on windows. (use uint32_t ) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@553 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a5621763a8
commit
5913872a77
@ -77,7 +77,7 @@ uint32_t RsQblogSerialiser::sizeItem(RsQblogItem *item)
|
||||
|
||||
/*******************************************************************************/
|
||||
|
||||
bool RsQblogSerialiser::serialiseItem(RsQblogItem* item, void* data, u_int32_t *size)
|
||||
bool RsQblogSerialiser::serialiseItem(RsQblogItem* item, void* data, uint32_t *size)
|
||||
{
|
||||
uint32_t tlvsize = sizeItem(item);
|
||||
uint32_t offset = 0;
|
||||
|
@ -122,7 +122,7 @@ bool p3Qblog::getBlogs(std::map< std::string, std::multimap<long int, std:: stri
|
||||
bool p3Qblog::sendBlog(std::string &msg)
|
||||
{
|
||||
time_t msgCreatedTime;
|
||||
UsrBlogSet.at("Usr1").insert(std::make_pair(msgCreatedTime, msg));
|
||||
UsrBlogSet["Usr1"].insert(std::make_pair(msgCreatedTime, msg));
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -135,7 +135,7 @@ bool p3Qblog::getProfile(std::string &usrId, std::string &favSong)
|
||||
return false;
|
||||
}
|
||||
|
||||
favSong = FriendSongset.at(usrId);
|
||||
favSong = FriendSongset[usrId];
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user