mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 22:30:42 -04:00
Fix a couple of warning in JSON serializer
This commit is contained in:
parent
23a7a0876a
commit
6aa85ea292
1 changed files with 4 additions and 2 deletions
|
@ -732,11 +732,13 @@ bool RsTypeSerializer::to_JSON(
|
||||||
rapidjson::Document::AllocatorType& allocator = jDoc.GetAllocator();
|
rapidjson::Document::AllocatorType& allocator = jDoc.GetAllocator();
|
||||||
|
|
||||||
rapidjson::Value key;
|
rapidjson::Value key;
|
||||||
key.SetString(memberName.c_str(), memberName.length(), allocator);
|
key.SetString( memberName.c_str(),
|
||||||
|
static_cast<rapidjson::SizeType>(memberName.length()),
|
||||||
|
allocator );
|
||||||
|
|
||||||
std::string encodedValue;
|
std::string encodedValue;
|
||||||
Radix64::encode( reinterpret_cast<uint8_t*>(member.first),
|
Radix64::encode( reinterpret_cast<uint8_t*>(member.first),
|
||||||
member.second, encodedValue );
|
static_cast<int>(member.second), encodedValue );
|
||||||
|
|
||||||
rapidjson::Value value;
|
rapidjson::Value value;
|
||||||
value.SetString(encodedValue.data(), allocator);
|
value.SetString(encodedValue.data(), allocator);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue