fixed const in serializer

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6716 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-09-08 12:02:15 +00:00
parent 3a69ae2be8
commit c7bfcbe8ad
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ bool getRawString(void *data, uint32_t size, uint32_t *offset, std::string &outS
return true;
}
bool setRawString(void *data, uint32_t size, uint32_t *offset, std::string &inStr)
bool setRawString(void *data, uint32_t size, uint32_t *offset, const std::string &inStr)
{
uint32_t len = inStr.length();
/* first check there is space */

View File

@ -61,7 +61,7 @@ bool getRawUInt64(void *data, uint32_t size, uint32_t *offset, uint64_t *out);
bool setRawUInt64(void *data, uint32_t size, uint32_t *offset, uint64_t in);
bool getRawString(void *data, uint32_t size, uint32_t *offset, std::string &outStr);
bool setRawString(void *data, uint32_t size, uint32_t *offset, std::string &inStr);
bool setRawString(void *data, uint32_t size, uint32_t *offset, const std::string &inStr);
#endif