mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-16 10:30:01 -04:00
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:
parent
3a69ae2be8
commit
c7bfcbe8ad
2 changed files with 2 additions and 2 deletions
|
@ -213,7 +213,7 @@ bool getRawString(void *data, uint32_t size, uint32_t *offset, std::string &outS
|
||||||
return true;
|
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();
|
uint32_t len = inStr.length();
|
||||||
/* first check there is space */
|
/* first check there is space */
|
||||||
|
|
|
@ -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 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 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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue