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:
drbob 2008-05-13 16:56:27 +00:00
parent a5621763a8
commit 5913872a77
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}